aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mm/page-types.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-11-04 07:46:55 +0000
committerBartosz Golaszewski <[email protected]>2024-11-04 07:46:55 +0000
commita7a86fe18b9a3c1e3f2c0b4687bf53cc2b9f9f88 (patch)
tree3d0296da382dd92ab964719d981fa32ee383e886 /tools/mm/page-types.c
parentgpio: mpsse: Check for error code from devm_mutex_init() call (diff)
parentLinux 6.12-rc6 (diff)
downloadkernel-a7a86fe18b9a3c1e3f2c0b4687bf53cc2b9f9f88.tar.gz
kernel-a7a86fe18b9a3c1e3f2c0b4687bf53cc2b9f9f88.zip
Merge tag 'v6.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into gpio/for-next
Linux 6.12-rc6
Diffstat (limited to 'tools/mm/page-types.c')
-rw-r--r--tools/mm/page-types.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/mm/page-types.c b/tools/mm/page-types.c
index fa050d5a48cd..6eb17cc1a06c 100644
--- a/tools/mm/page-types.c
+++ b/tools/mm/page-types.c
@@ -22,6 +22,7 @@
#include <time.h>
#include <setjmp.h>
#include <signal.h>
+#include <inttypes.h>
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/fcntl.h>
@@ -391,9 +392,9 @@ static void show_page_range(unsigned long voffset, unsigned long offset,
if (opt_file)
printf("%lx\t", voff);
if (opt_list_cgroup)
- printf("@%llu\t", (unsigned long long)cgroup0);
+ printf("@%" PRIu64 "\t", cgroup0);
if (opt_list_mapcnt)
- printf("%lu\t", mapcnt0);
+ printf("%" PRIu64 "\t", mapcnt0);
printf("%lx\t%lx\t%s\n",
index, count, page_flag_name(flags0));
}
@@ -419,9 +420,9 @@ static void show_page(unsigned long voffset, unsigned long offset,
if (opt_file)
printf("%lx\t", voffset);
if (opt_list_cgroup)
- printf("@%llu\t", (unsigned long long)cgroup);
+ printf("@%" PRIu64 "\t", cgroup)
if (opt_list_mapcnt)
- printf("%lu\t", mapcnt);
+ printf("%" PRIu64 "\t", mapcnt);
printf("%lx\t%s\n", offset, page_flag_name(flags));
}