From: Thomas Weißschuh Date: Sun, 12 Apr 2026 06:09:24 +0000 (+0200) Subject: hardlink: avoid format string error for dev_t X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=dde10e10f768995ff4ea222d5a51574da5f5c125;p=thirdparty%2Futil-linux.git hardlink: avoid format string error for dev_t The real integer type of dev_t is unspecified. Cast the value to make sure it matches the format specifier. Signed-off-by: Thomas Weißschuh --- diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index 2c02e25d4..95c518bf6 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -881,7 +881,7 @@ static int inserter(const char *fpath, const struct stat *sb, } jlog(VERBOSE2, printf(" %5zu: [%" PRIu64 "/%" PRIu64 "/%zu] %s", - stats.files, sb->st_dev, sb->st_ino, + stats.files, (uint64_t)sb->st_dev, sb->st_ino, (size_t) sb->st_nlink, fpath)); if ((opts.max_size > 0) && ((uintmax_t) sb->st_size > opts.max_size)) {