]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: fix wrong format specifiers in snptinrf()
authorMasatake YAMATO <yamato@redhat.com>
Tue, 14 Mar 2023 18:32:26 +0000 (03:32 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 14 Mar 2023 18:32:46 +0000 (03:32 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c

index 27a0ada01bb8ba97eb60b04c66f41ff454f1e25f..122bef9fa824766b0aadedf561ccab2a604622fd 100644 (file)
@@ -850,7 +850,7 @@ static void parse_maps_line(struct path_cxt *pc, char *buf, struct proc *proc)
                char sym[PATH_MAX] = { '\0' };
 
        try_map_files:
-               snprintf(map_file, sizeof(map_file), "map_files/%"SCNx64"-%"SCNx64, start, end);
+               snprintf(map_file, sizeof(map_file), "map_files/%"PRIx64"-%"PRIx64, start, end);
                if (ul_path_stat(pc, &sb, 0, map_file) < 0)
                        return;
                if (ul_path_readlink(pc, sym, sizeof(sym), map_file) < 0)