]> granicus.if.org Git - strace/commitdiff
Use %d printf format instead of %i everywhere
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 16 May 2012 10:29:09 +0000 (12:29 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 16 May 2012 10:29:09 +0000 (12:29 +0200)
* loop.c (loop_ioctl): Use %d instead of %i.
* mtd.c (mtd_ioctl): Likewise.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loop.c
mtd.c

diff --git a/loop.c b/loop.c
index 83d91527ea258a118054d2366d67e462b2ee7f45..a3f89e06f79d8f899774ba539f46510b50e5def5 100644 (file)
--- a/loop.c
+++ b/loop.c
@@ -72,7 +72,7 @@ int loop_ioctl(struct tcb *tcp, long code, long arg)
                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 @@ int loop_ioctl(struct tcb *tcp, long code, long arg)
                        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 976024ef7473c590058c404e9c6c76cbd1de2b15..999fea661655971bf03a2e184ba55e257936ac2c 100644 (file)
--- a/mtd.c
+++ b/mtd.c
@@ -267,7 +267,7 @@ int mtd_ioctl(struct tcb *tcp, long code, long arg)
                if (!verbose(tcp) || umove(tcp, arg, &i) < 0)
                        return 0;
 
-               tprintf(", [%i]", i);
+               tprintf(", [%d]", i);
                return 1;
 
        case MTDFILEMODE: