diff options
author | Manuel Bentele | 2020-12-07 14:36:44 +0100 |
---|---|---|
committer | Manuel Bentele | 2020-12-07 14:36:44 +0100 |
commit | d521576ab59f73f7d6b9dfcb939a119fe8c5a423 (patch) | |
tree | d1297a94886b17e3d16f69c0f25a68261b8128fe | |
parent | Removed unused library 'ncurses' from xlosetup's dependencies (diff) | |
download | xloop-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.c | 4 |
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); |