From: Masatake YAMATO Date: Thu, 10 Feb 2022 16:18:08 +0000 (+0900) Subject: lsfd: fix the way to print length of mmap area X-Git-Tag: v2.38-rc2~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05f51387973cbbb3fa1f3371faeef77e82661392;p=thirdparty%2Futil-linux.git lsfd: fix the way to print length of mmap area Suggested-by: Anatoly Pugachev . Signed-off-by: Masatake YAMATO --- 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;