Use %d printf format instead of %i everywhere
* loop.c (loop_ioctl): Use %d instead of %i.
* mtd.c (mtd_ioctl): Likewise.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/loop.c b/loop.c
index 83d9152..a3f89e0 100644
--- a/loop.c
+++ b/loop.c
@@ -72,7 +72,7 @@
if (!verbose(tcp) || umove(tcp, arg, &info) < 0)
return 0;
- tprintf(", {number=%i", info.lo_number);
+ tprintf(", {number=%d", info.lo_number);
if (!abbrev(tcp)) {
tprintf(", device=%#lx, inode=%lu, rdevice=%#lx",
@@ -87,7 +87,7 @@
tprints(", encrypt_type=");
printxval(loop_crypt_type_options, info.lo_encrypt_type,
"LO_CRYPT_???");
- tprintf(", encrypt_key_size=%i", info.lo_encrypt_key_size);
+ tprintf(", encrypt_key_size=%d", info.lo_encrypt_key_size);
}
tprints(", flags=");
diff --git a/mtd.c b/mtd.c
index 976024e..999fea6 100644
--- a/mtd.c
+++ b/mtd.c
@@ -267,7 +267,7 @@
if (!verbose(tcp) || umove(tcp, arg, &i) < 0)
return 0;
- tprintf(", [%i]", i);
+ tprintf(", [%d]", i);
return 1;
case MTDFILEMODE: