]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fileeq/lsfd: use correct format specifier
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 21 Nov 2022 02:50:06 +0000 (03:50 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Nov 2022 13:57:17 +0000 (14:57 +0100)
lib/fileeq.c
misc-utils/lsfd-sock-xinfo.c

index d24cbb90ac6d6035fe1c6274ec18d65058223f02..af5b4e32bc13c3fe51387092be6e6d66aa834ba0 100644 (file)
@@ -423,7 +423,7 @@ static ssize_t get_digest(struct ul_fileeq *eq, struct ul_fileeq_data *data,
        sz = eq->method->digsiz;
 
        if (!data->blocks) {
-               DBG(DATA, ul_debugobj(data, "  alloc cache %zu", eq->blocksmax * sz));
+               DBG(DATA, ul_debugobj(data, "  alloc cache %" PRIu64, eq->blocksmax * sz));
                data->blocks = malloc(eq->blocksmax * sz);
                if (!data->blocks)
                        return -ENOMEM;
index 5ee8ee933a2f2843042dc042749e946bfd83d666..5a14c5b59273c30b48871d9712f2b8148ffaead5 100644 (file)
@@ -369,7 +369,7 @@ static void load_xinfo_from_proc_unix(ino_t netns_inode)
                struct unix_xinfo *ux;
 
                memset(path, 0, sizeof(path));
-               if (sscanf(line, "%*x: %*x %*x %lx %x %x %lu %s",
+               if (sscanf(line, "%*x: %*x %*x %" SCNx64 " %x %x %lu %s",
                           &flags, &type, &st, &inode, path) < 4)
                        continue;