]> granicus.if.org Git - strace/blobdiff - mtd.c
tests: add a test for -yy option
[strace] / mtd.c
diff --git a/mtd.c b/mtd.c
index 8ba658b5ca3df7b7b3c8599055264eef766ecea3..88e8dbcc64332917bd856e9473a1e50394e84479 100644 (file)
--- a/mtd.c
+++ b/mtd.c
@@ -60,7 +60,7 @@ int mtd_ioctl(struct tcb *tcp, long code, long arg)
        struct mtd_write_req mreq;
        struct nand_oobinfo ninfo;
        struct nand_ecclayout_user nlay;
-       int i, j;
+       unsigned int i, j;
 
        if (entering(tcp))
                return 0;
@@ -235,7 +235,7 @@ int mtd_ioctl(struct tcb *tcp, long code, long arg)
                if (!verbose(tcp) || umove(tcp, arg, &i) < 0)
                        return 0;
 
-               tprintf(", [%d]", i);
+               tprintf(", [%u]", i);
                return 1;
 
        case MTDFILEMODE: