Changeset b48ebd19 in mainline
- Timestamp:
- 2010-03-09T23:29:52Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60ab6c3, 76ca3f7
- Parents:
- 74520daf
- Location:
- uspace/srv/net
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/netif/dp8390/dp8390_module.c
r74520daf rb48ebd19 193 193 dep->de_int_pending = 0; 194 194 // remove debug print: 195 #ifdef CONFIG_DEBUG 195 196 printf("I%d: 0x%x\n", device_id, IPC_GET_ISR(call)); 197 #endif 196 198 dp_check_ints(dep, IPC_GET_ISR(call)); 197 199 if(dep->received_queue){ … … 202 204 fibril_rwlock_write_unlock(&netif_globals.lock); 203 205 // remove debug dump: 206 #ifdef CONFIG_DEBUG 204 207 uint8_t * data; 205 208 data = packet_get_data(received); 206 209 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 207 211 nil_received_msg(phone, device_id, received, NULL); 208 212 }else{ … … 267 271 next = pq_detach(packet); 268 272 // remove debug dump: 273 #ifdef CONFIG_DEBUG 269 274 uint8_t * data; 270 275 data = packet_get_data(packet); 271 276 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 273 278 if(do_pwrite(dep, packet, FALSE) != EBUSY){ 274 279 netif_pq_release(packet_get_id(packet)); -
uspace/srv/net/tl/icmp/icmp.c
r74520daf rb48ebd19 41 41 #include <fibril_synch.h> 42 42 #include <stdint.h> 43 #include <string.h> 43 44 44 45 #include <ipc/ipc.h> -
uspace/srv/net/tl/icmp/icmp_client.c
r74520daf rb48ebd19 37 37 38 38 #include <errno.h> 39 //#include <stdio.h> 39 40 #ifdef CONFIG_DEBUG 41 #include <stdio.h> 42 #endif 40 43 41 44 #include <sys/types.h> … … 70 73 } 71 74 // 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 73 78 return sizeof(icmp_header_t); 74 79 }
Note:
See TracChangeset
for help on using the changeset viewer.