From 05f51387973cbbb3fa1f3371faeef77e82661392 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Fri, 11 Feb 2022 01:18:08 +0900 Subject: [PATCH] lsfd: fix the way to print length of mmap area Suggested-by: Anatoly Pugachev . Signed-off-by: Masatake YAMATO --- misc-utils/lsfd-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsfd-file.c b/misc-utils/lsfd-file.c index 39a5b92174..e65af38015 100644 --- a/misc-utils/lsfd-file.c +++ b/misc-utils/lsfd-file.c @@ -337,7 +337,7 @@ static bool file_fill_column(struct proc *proc, if (file->association != -ASSOC_SHM && file->association != -ASSOC_MEM) return true; - xasprintf(&str, "%lu", get_map_length(file)); + xasprintf(&str, "%ju", (uintmax_t)get_map_length(file)); break; default: return false; -- 2.47.2