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:
Eugene Syromyatnikov 2018-04-04 15:52:36 +02:00 committed by Dmitry V. Levin
parent 604af7aca4
commit 89955c53a4

View File

@ -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]);