Changeset 84439d7 in mainline for uspace/app/netecho/netecho.c
- Timestamp:
- 2010-12-05T09:34:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 75732da
- Parents:
- 56b962d (diff), 35537a7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netecho/netecho.c
r56b962d r84439d7 220 220 // check the buffer size 221 221 if (size <= 0) { 222 fprintf(stderr, "Receive size too small (% d). Using 1024 bytes instead.\n", size);222 fprintf(stderr, "Receive size too small (%zu). Using 1024 bytes instead.\n", size); 223 223 size = 1024; 224 224 } … … 262 262 // check the backlog 263 263 if (backlog <= 0) { 264 fprintf(stderr, "Accepted sockets queue size too small (% d). Using 3 instead.\n", size);264 fprintf(stderr, "Accepted sockets queue size too small (%zu). Using 3 instead.\n", size); 265 265 backlog = 3; 266 266 } … … 325 325 break; 326 326 default: 327 fprintf(stderr, "Address family %d (0x%X) is not supported.\n", address->sa_family); 327 fprintf(stderr, "Address family %u (%#x) is not supported.\n", 328 address->sa_family, address->sa_family); 328 329 } 329 330 // parse the source address … … 334 335 } else { 335 336 data[length] = '\0'; 336 printf("Socket %d received %d bytes from %s:%d\n%s\n", socket_id, length, address_string, port, data); 337 printf("Socket %d received %zu bytes from %s:%d\n%s\n", 338 socket_id, length, address_string, port, data); 337 339 } 338 340 }
Note:
See TracChangeset
for help on using the changeset viewer.