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

Changeset 84439d7 in mainline for uspace/app/netecho/netecho.c


Ignore:
Timestamp:
2010-12-05T09:34:46Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
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.
Message:

Merge with development/

File:
1 edited

Legend:

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

    r56b962d r84439d7  
    220220        // check the buffer size
    221221        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);
    223223                size = 1024;
    224224        }
     
    262262                // check the backlog
    263263                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);
    265265                        backlog = 3;
    266266                }
     
    325325                                                break;
    326326                                        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);
    328329                                        }
    329330                                        // parse the source address
     
    334335                                                } else {
    335336                                                        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);
    337339                                                }
    338340                                        }
Note: See TracChangeset for help on using the changeset viewer.