right printf format in testobsdrdr.c and tespfpinhole.c

This commit is contained in:
Thomas Bernard 2017-03-13 11:37:43 +01:00
parent 07a3729b59
commit 2c02ef2b7b
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
/* $Id: testobsdrdr.c,v 1.28 2014/03/06 13:02:47 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2014 Thomas Bernard
* (c) 2006-2017 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
@ -118,7 +118,7 @@ main(int argc, char * * argv)
printf("get_redirect_rule() failed\n");
else
{
printf("\n%s:%d '%s' packets=%llu bytes=%llu\n", buf, (int)iport, desc,
printf("\n%s:%d '%s' packets=%" PRIu64 " bytes=%" PRIu64 "\n", buf, (int)iport, desc,
packets, bytes);
}

View File

@ -2,7 +2,7 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2012-2016 Thomas Bernard
* (c) 2012-2017 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
@ -49,7 +49,7 @@ static int print_pinhole(int uid)
uid, rem_host, rem_port, int_client, int_port,
proto, timestamp);
printf(" desc='%s'\n", desc);
printf(" packets=%llu bytes=%llu\n", packets, bytes);
printf(" packets=%" PRIu64 " bytes=%" PRIu64 "\n", packets, bytes);
}
return r;
}