strace/getcpu.c
Dmitry V. Levin bc863e9cae getcpu.c: use printnum_int and printaddr
* getcpu.c (sys_getcpu): Use printnum_int and printaddr.
2015-07-20 22:03:07 +00:00

14 lines
221 B
C

#include "defs.h"
SYS_FUNC(getcpu)
{
if (exiting(tcp)) {
printnum_int(tcp, tcp->u_arg[0], "%u");
tprints(", ");
printnum_int(tcp, tcp->u_arg[1], "%u");
tprints(", ");
printaddr(tcp->u_arg[2]);
}
return 0;
}