]> granicus.if.org Git - strace/commitdiff
bfin: fix decoding of cacheflush syscall
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 21:31:54 +0000 (21:31 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 21:47:09 +0000 (21:47 +0000)
* cacheflush.c (SYS_FUNC(cacheflush)): Print 2nd argument
using %lu format.  Print 3rd argument as flags.

cacheflush.c

index aa8bc86f93293b9bffedac732f0f33f8508e7401..8c2c05c3d36d7638923edd47dcae8c19f16b3ca0 100644 (file)
@@ -81,9 +81,9 @@ SYS_FUNC(cacheflush)
        /* start addr */
        printaddr(tcp->u_arg[0]);
        /* length */
-       tprintf(", %ld, ", tcp->u_arg[1]);
+       tprintf(", %lu, ", tcp->u_arg[1]);
        /* flags */
-       printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE");
+       printxval(cacheflush_flags, tcp->u_arg[2], "?CACHE");
 
        return RVAL_DECODED;
 }