gcc -std=gnu99 -Wall -g -D_GNU_SOURCE -o pgcollect pgcollect.c
pgcollect.c: In function 'collectExistingMappings':
pgcollect.c:127:17: warning: format '%lx' expects argument of type 'long unsigned int *', but argument 3 has type '__u64 *' {aka 'long long unsigned int *'} [-Wformat=]
sscanf(buf, "%"PRIx64"-%"PRIx64" %s %"PRIx64" %*x:%*x %*u %s\n", &event.addr, &event.len, prot, &event.pgoff,
^~~ ~~~~~~~~~~~
In file included from pgcollect.c:4:
/usr/include/inttypes.h:121:34: note: format string is defined here
# define PRIx64 __PRI64_PREFIX "x"
pgcollect.c:127:17: warning: format '%lx' expects argument of type 'long unsigned int *', but argument 4 has type '__u64 *' {aka 'long long unsigned int *'} [-Wformat=]
sscanf(buf, "%"PRIx64"-%"PRIx64" %s %"PRIx64" %*x:%*x %*u %s\n", &event.addr, &event.len, prot, &event.pgoff,
^~~ ~~~~~~~~~~
In file included from pgcollect.c:4:
/usr/include/inttypes.h:121:34: note: format string is defined here
# define PRIx64 __PRI64_PREFIX "x"
pgcollect.c:127:17: warning: format '%lx' expects argument of type 'long unsigned int *', but argument 6 has type '__u64 *' {aka 'long long unsigned int *'} [-Wformat=]
sscanf(buf, "%"PRIx64"-%"PRIx64" %s %"PRIx64" %*x:%*x %*u %s\n", &event.addr, &event.len, prot, &event.pgoff,
^~~ ~~~~~~~~~~~~
In file included from pgcollect.c:4:
/usr/include/inttypes.h:121:34: note: format string is defined here
# define PRIx64 __PRI64_PREFIX "x"