From c5f3a76b5003d175e54091f7a566e62b13f20ced Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Wed, 2 Dec 2020 13:22:18 +0100 Subject: 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. --- src/utils/sys-utils/xlosetup.c | 4 ++-- 1 file 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); -- cgit v1.2.3-55-g7522