diff options
author | Manuel Bentele | 2020-12-02 13:22:18 +0100 |
---|---|---|
committer | Manuel Bentele | 2020-12-02 13:22:18 +0100 |
commit | c5f3a76b5003d175e54091f7a566e62b13f20ced (patch) | |
tree | 6f3ced788d4459888e39458e1df39c5835f73df3 /src/utils | |
parent | Update xlosetup's 'lib' and 'libsmartcol' from util-linux 2.36.1 (diff) | |
download | xloop-c5f3a76b5003d175e54091f7a566e62b13f20ced.tar.gz xloop-c5f3a76b5003d175e54091f7a566e62b13f20ced.tar.xz xloop-c5f3a76b5003d175e54091f7a566e62b13f20ced.zip |
Fix xlosetup's output of xloop devices on 32 bit hardware architectures
This change fixes the printing of all xloop devices on 32 bit hardware
architectures. A wrong format specifier for printf() is replaced to
support the printing of the architecture-specific ino_t data type range.
Diffstat (limited to 'src/utils')
-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 cbc2e69..abf3867 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]:%" PRIu64 " (%s)", - loopcxt_get_device(lc), (int) dev, ino, fname); + printf("%s: [%04d]:%" PRIuMAX " (%s)", + loopcxt_get_device(lc), (int) dev, (uintmax_t)ino, fname); if (loopcxt_get_offset(lc, &x) == 0 && x) printf(_(", offset %ju"), x); |