]> granicus.if.org Git - strace/blobdiff - block.c
Robustify mpers.awk against invalid input
[strace] / block.c
diff --git a/block.c b/block.c
index 3b1de513876a2eb700ef4a23581fc273b1140654..1e02fa71bf30f51254710a6c6cac8fc42357365f 100644 (file)
--- a/block.c
+++ b/block.c
@@ -165,7 +165,7 @@ block_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
                if (entering(tcp))
                        return 0;
                tprints(", ");
-               printnum_long(tcp, arg, "%ld");
+               printnum_slong(tcp, arg);
                break;
 
        /* returns an unsigned long */
@@ -173,7 +173,7 @@ block_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
                if (entering(tcp))
                        return 0;
                tprints(", ");
-               printnum_long(tcp, arg, "%lu");
+               printnum_ulong(tcp, arg);
                break;
 
 #ifdef HAVE_BLKGETSIZE64