misc-utils/hardlink.c:726:48: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘__nlink_t’
Reported-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
return 0;
}
- jlog(JLOG_VERBOSE2, " %5zu: [%ld/%ld/%ld] %s",
- stats.files, sb->st_dev, sb->st_ino, sb->st_nlink, fpath);
+ jlog(JLOG_VERBOSE2, " %5zu: [%ld/%ld/%zu] %s",
+ stats.files, 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)) {
jlog(JLOG_VERBOSE1,