Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 96c0b7b in mainline


Ignore:
Timestamp:
2012-04-17T07:38:47Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
64a617f
Parents:
b1213b0
Message:

Remove debug dumps of frame contents.

Location:
uspace/srv/net/ethip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/ethip/ethip_nic.c

    rb1213b0 r96c0b7b  
    231231}
    232232
    233 #include <stdio.h>
    234233static void ethip_nic_received(ethip_nic_t *nic, ipc_callid_t callid,
    235234    ipc_call_t *call)
     
    249248        log_msg(LVL_DEBUG, "Ethernet PDU contents (%zu bytes)",
    250249            size);
    251         size_t i;
    252         for (i = 0; i < size; i++)
    253                 printf("%02x ", ((uint8_t *)data)[i]);
    254         printf("\n");
    255250
    256251        log_msg(LVL_DEBUG, "call ethip_received");
  • uspace/srv/net/ethip/pdu.c

    rb1213b0 r96c0b7b  
    4949
    5050/** Encode Ethernet PDU. */
    51 #include <stdio.h>
    5251int eth_pdu_encode(eth_frame_t *frame, void **rdata, size_t *rsize)
    5352{
     
    7372            frame->src, frame->dest, frame->etype_len);
    7473        log_msg(LVL_DEBUG, "Encoded Ethernet frame (%zu bytes)", size);
    75         size_t i;
    76         for (i = 0; i < size; i++) {
    77                 printf("%02x ", ((uint8_t *)(data))[sizeof(eth_header_t) + i]);
    78         }
    79         printf("\n");
    80 
    8174
    8275        *rdata = data;
     
    8578}
    8679
    87 #include <stdio.h>
    8880/** Decode Ethernet PDU. */
    8981int eth_pdu_decode(void *data, size_t size, eth_frame_t *frame)
     
    115107            frame->src, frame->dest, frame->etype_len);
    116108        log_msg(LVL_DEBUG, "Decoded Ethernet frame payload (%zu bytes)", frame->size);
    117         size_t i;
    118         for (i = 0; i < frame->size; i++) {
    119                 printf("%02x ", ((uint8_t *)(frame->data))[i]);
    120         }
    121         printf("\n");
    122109
    123110        return EOK;
Note: See TracChangeset for help on using the changeset viewer.