Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/netecho/netecho.c

    r7e752b2 r481b212  
    220220        // check the buffer size
    221221        if (size <= 0) {
    222                 fprintf(stderr, "Receive size too small (%zu). Using 1024 bytes instead.\n", size);
     222                fprintf(stderr, "Receive size too small (%d). Using 1024 bytes instead.\n", size);
    223223                size = 1024;
    224224        }
     
    262262                // check the backlog
    263263                if (backlog <= 0) {
    264                         fprintf(stderr, "Accepted sockets queue size too small (%zu). Using 3 instead.\n", size);
     264                        fprintf(stderr, "Accepted sockets queue size too small (%d). Using 3 instead.\n", size);
    265265                        backlog = 3;
    266266                }
     
    325325                                                break;
    326326                                        default:
    327                                                 fprintf(stderr, "Address family %u (%#x) is not supported.\n",
    328                                                     address->sa_family, address->sa_family);
     327                                                fprintf(stderr, "Address family %d (0x%X) is not supported.\n", address->sa_family);
    329328                                        }
    330329                                        // parse the source address
     
    335334                                                } else {
    336335                                                        data[length] = '\0';
    337                                                         printf("Socket %d received %zu bytes from %s:%d\n%s\n",
    338                                                             socket_id, length, address_string, port, data);
     336                                                        printf("Socket %d received %d bytes from %s:%d\n%s\n", socket_id, length, address_string, port, data);
    339337                                                }
    340338                                        }
Note: See TracChangeset for help on using the changeset viewer.