strace/getrandom.c
Dmitry V. Levin aa9f687ff3 getrandom.c: use printaddr
* getrandom.c (sys_getrandom): Use printaddr.
2015-07-20 22:03:07 +00:00

16 lines
310 B
C

#include "defs.h"
#include "xlat/getrandom_flags.h"
SYS_FUNC(getrandom)
{
if (exiting(tcp)) {
if (syserror(tcp))
printaddr(tcp->u_arg[0]);
else
printstr(tcp, tcp->u_arg[0], tcp->u_rval);
tprintf(", %lu, ", tcp->u_arg[1]);
printflags(getrandom_flags, tcp->u_arg[2], "GRND_???");
}
return 0;
}