summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2020-12-07 14:36:44 +0100
committerManuel Bentele2020-12-07 14:36:44 +0100
commitd521576ab59f73f7d6b9dfcb939a119fe8c5a423 (patch)
treed1297a94886b17e3d16f69c0f25a68261b8128fe
parentRemoved unused library 'ncurses' from xlosetup's dependencies (diff)
downloadxloop-d521576ab59f73f7d6b9dfcb939a119fe8c5a423.tar.gz
xloop-d521576ab59f73f7d6b9dfcb939a119fe8c5a423.tar.xz
xloop-d521576ab59f73f7d6b9dfcb939a119fe8c5a423.zip
Change format specifiers %PRIxMAX to %jx to avoid macros
-rw-r--r--src/utils/sys-utils/xlosetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/sys-utils/xlosetup.c b/src/utils/sys-utils/xlosetup.c
index abf3867..768cee9 100644
--- a/src/utils/sys-utils/xlosetup.c
+++ b/src/utils/sys-utils/xlosetup.c
@@ -154,8 +154,8 @@ static int printf_loopdev(struct loopdev_cxt *lc)
goto done;
}
- printf("%s: [%04d]:%" PRIuMAX " (%s)",
- loopcxt_get_device(lc), (int) dev, (uintmax_t)ino, fname);
+ printf("%s: [%04jd]:%ju (%s)",
+ loopcxt_get_device(lc), (intmax_t) dev, (uintmax_t) ino, fname);
if (loopcxt_get_offset(lc, &x) == 0 && x)
printf(_(", offset %ju"), x);