Changeset ba519f7 in mainline for uspace/app/netecho/netecho.c


Ignore:
Timestamp:
2010-12-02T17:21:30Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3bd76491
Parents:
8ad673a (diff), 41a7f62 (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 from mainline

File:
1 edited

Legend:

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

    r8ad673a rba519f7  
    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.