]> granicus.if.org Git - strace/commitdiff
Blackfin: tweak sram_alloc syscall decode
authorMike Frysinger <vapier@gentoo.org>
Wed, 3 Apr 2013 04:19:31 +0000 (00:19 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Apr 2013 21:55:54 +0000 (21:55 +0000)
* system.c (sys_sram_alloc): The 2nd argument of sram_alloc syscall
is a bit field, not a specific value, so decode it as such.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
system.c

index d5900c420e1156fa478bf0bcf4fa5d81692ac1fe..26d0d7fd2eb2d96f60f3840dbaabbcb2333bf90a 100644 (file)
--- a/system.c
+++ b/system.c
@@ -378,7 +378,7 @@ sys_sram_alloc(struct tcb *tcp)
                /* size */
                tprintf("%lu, ", tcp->u_arg[0]);
                /* flags */
-               printxval(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
+               printflags(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
        }
        return 1;
 }