ipc: use printxval_u instead of manual xlat value printing

* ipc.c (SYS_FUNC(ipc)): Decode call argument using printxval_u.
This commit is contained in:
Eugene Syromyatnikov 2018-04-04 14:28:34 +02:00 committed by Dmitry V. Levin
parent ed799d5ecc
commit f900ebd9a0

6
ipc.c
View File

@ -33,15 +33,11 @@ SYS_FUNC(ipc)
unsigned int call = tcp->u_arg[0];
unsigned int version = call >> 16;
call &= 0xffff;
const char *str = xlookup(ipccalls, call);
if (version)
tprintf("%u<<16|", version);
if (str)
tprints(str);
else
tprintf("%u", call);
printxval_u(ipccalls, call, NULL);
unsigned int i;
for (i = 1; i < tcp->s_ent->nargs; ++i)