Changeset b48ebd19 in mainline


Ignore:
Timestamp:
2010-03-09T23:29:52Z (15 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3, 76ca3f7
Parents:
74520daf
Message:
  • debug prints in debug mode only
Location:
uspace/srv/net
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netif/dp8390/dp8390_module.c

    r74520daf rb48ebd19  
    193193        dep->de_int_pending = 0;
    194194//      remove debug print:
     195#ifdef CONFIG_DEBUG
    195196        printf("I%d: 0x%x\n", device_id, IPC_GET_ISR(call));
     197#endif
    196198        dp_check_ints(dep, IPC_GET_ISR(call));
    197199        if(dep->received_queue){
     
    202204                fibril_rwlock_write_unlock(&netif_globals.lock);
    203205//      remove debug dump:
     206#ifdef CONFIG_DEBUG
    204207        uint8_t * data;
    205208        data = packet_get_data(received);
    206209        printf("Receiving packet:\n\tid\t= %d\n\tlength\t= %d\n\tdata\t= %.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX\n\t\t%.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX\n", packet_get_id(received), packet_get_data_length(received), data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8], data[9], data[10], data[11], data[12], data[13], data[14], data[15], data[16], data[17], data[18], data[19], data[20], data[21], data[22], data[23], data[24], data[25], data[26], data[27], data[28], data[29], data[30], data[31], data[32], data[33], data[34], data[35], data[36], data[37], data[38], data[39], data[40], data[41], data[42], data[43], data[44], data[45], data[46], data[47], data[48], data[49], data[50], data[51], data[52], data[53], data[54], data[55], data[56], data[57], data[58], data[59]);
     210#endif
    207211                nil_received_msg(phone, device_id, received, NULL);
    208212        }else{
     
    267271                next = pq_detach(packet);
    268272//              remove debug dump:
     273#ifdef CONFIG_DEBUG
    269274                uint8_t * data;
    270275                data = packet_get_data(packet);
    271276                printf("Sending packet:\n\tid\t= %d\n\tlength\t= %d\n\tdata\t= %.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX\n\t\t%.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX:%.2hhX %.2hhX %.2hhX %.2hhX\n", packet_get_id(packet), packet_get_data_length(packet), data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8], data[9], data[10], data[11], data[12], data[13], data[14], data[15], data[16], data[17], data[18], data[19], data[20], data[21], data[22], data[23], data[24], data[25], data[26], data[27], data[28], data[29], data[30], data[31], data[32], data[33], data[34], data[35], data[36], data[37], data[38], data[39], data[40], data[41], data[42], data[43], data[44], data[45], data[46], data[47], data[48], data[49], data[50], data[51], data[52], data[53], data[54], data[55], data[56], data[57], data[58], data[59]);
    272 
     277#endif
    273278                if(do_pwrite(dep, packet, FALSE) != EBUSY){
    274279                        netif_pq_release(packet_get_id(packet));
  • uspace/srv/net/tl/icmp/icmp.c

    r74520daf rb48ebd19  
    4141#include <fibril_synch.h>
    4242#include <stdint.h>
     43#include <string.h>
    4344
    4445#include <ipc/ipc.h>
  • uspace/srv/net/tl/icmp/icmp_client.c

    r74520daf rb48ebd19  
    3737
    3838#include <errno.h>
    39 //#include <stdio.h>
     39
     40#ifdef CONFIG_DEBUG
     41        #include <stdio.h>
     42#endif
    4043
    4144#include <sys/types.h>
     
    7073        }
    7174        // remove debug dump
    72 //      printf("ICMP error %d (%d) in packet %d\n", header->type, header->code, packet_get_id(packet));
     75#ifdef CONFIG_DEBUG
     76        printf("ICMP error %d (%d) in packet %d\n", header->type, header->code, packet_get_id(packet));
     77#endif
    7378        return sizeof(icmp_header_t);
    7479}
Note: See TracChangeset for help on using the changeset viewer.