]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: fix the way to print length of mmap area
authorMasatake YAMATO <yamato@redhat.com>
Thu, 10 Feb 2022 16:18:08 +0000 (01:18 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 10 Feb 2022 16:18:08 +0000 (01:18 +0900)
Suggested-by: Anatoly Pugachev <matorola@gmail.com>.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-file.c

index 39a5b92174d271653ddcb8963a8f783630b0b384..e65af38015ae14b8a080e8c83dea7942b3659e15 100644 (file)
@@ -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;