socketcall: use printxval_d for printing call argument
* socketcall.c (SYS_FUNC(socketcall)): Use printxval_d instead of manual call argument decoding.
This commit is contained in:
parent
604af7aca4
commit
89955c53a4
@ -30,14 +30,7 @@
|
||||
|
||||
SYS_FUNC(socketcall)
|
||||
{
|
||||
const unsigned int call = tcp->u_arg[0];
|
||||
const char *str = xlookup(socketcalls, call);
|
||||
|
||||
if (str)
|
||||
tprints(str);
|
||||
else
|
||||
tprintf("%d", call);
|
||||
|
||||
printxval_d(socketcalls, tcp->u_arg[0], NULL);
|
||||
tprints(", ");
|
||||
printaddr(tcp->u_arg[1]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user