X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=network.c;h=fe87a7d90f4464cc67d6ffd8e6d3cddda2463c93;hb=9c19f1c350c5d075a47a193c1b5b2d9f8fa41f04;hp=f68d02b4b9e0696231d5ac07e31b7e77ae546450;hpb=491009ffbaedc312f1588681d2af08cd394a99de;p=debian%2Fgcpegg diff --git a/network.c b/network.c index f68d02b..fe87a7d 100644 --- a/network.c +++ b/network.c @@ -246,7 +246,7 @@ int NetListen(int sd, char **pktbuf, } #ifdef HEXDUMP - fprintf(stderr, "Received %ld bytes from %s\n", count, + fprintf(stderr, "Received %d bytes from %s\n", count, inet_ntoa(sin->sin_addr)); xd(stderr, buffer, count, FALSE); #endif @@ -274,7 +274,7 @@ int NetListen(int sd, char **pktbuf, pktsize = ntohs(rpktsize); if (pktsize != count) { #ifdef DEBUG - fprintf(stderr, "** Bad packet length: pktsize = %d, count = %ld.\n", + fprintf(stderr, "** Bad packet length: pktsize = %d, count = %d.\n", pktsize, count); #endif return ERR_PKT_BADLEN;