strace/sram_alloc.c
Dmitry V. Levin 5e2fc6228e bfin: fix printing of invalid flags argument of sram_alloc syscall
* sram_alloc.c (SYS_FUNC(sram_alloc)): Print 2nd argument using
printflags_long.
2016-05-17 08:03:58 +00:00

20 lines
292 B
C

#include "defs.h"
#ifdef BFIN
#include <bfin_sram.h>
#include "xlat/sram_alloc_flags.h"
SYS_FUNC(sram_alloc)
{
/* size */
tprintf("%lu, ", tcp->u_arg[0]);
/* flags */
printflags_long(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
return RVAL_DECODED | RVAL_HEX;
}
#endif /* BFIN */