Merge pull request #1080 from metayan/fix-longprint
Avoid warnings by using PRIu64
This commit is contained in:
@ -35,6 +35,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#ifndef bool
|
#ifndef bool
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
@ -1218,8 +1219,8 @@ int main(int argc, char** argv) {
|
|||||||
} else {
|
} else {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Transfer statistics:\n"
|
"Transfer statistics:\n"
|
||||||
"%lu bytes transferred by M0\n"
|
"%" PRIu64 " bytes transferred by M0\n"
|
||||||
"%lu bytes transferred by M4\n"
|
"%" PRIu64 " bytes transferred by M4\n"
|
||||||
"%u %s, longest %u bytes\n",
|
"%u %s, longest %u bytes\n",
|
||||||
stats.m0_total,
|
stats.m0_total,
|
||||||
stats.m4_total,
|
stats.m4_total,
|
||||||
|
Reference in New Issue
Block a user