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>
This commit is contained in:
Denys Vlasenko 2012-05-16 12:29:09 +02:00
parent 8560ef291c
commit 318a273ea9
2 changed files with 3 additions and 3 deletions

4
loop.c
View File

@ -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=");

2
mtd.c
View File

@ -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: