reboot.c: use printxval instead of printflags

Numeric arguments of reboot syscall are not flags but magic values.

* reboot.c (SYS_FUNC(reboot)): Replace printflags with printxval.
This commit is contained in:
Eugene Syromyatnikov 2018-01-10 05:25:40 +01:00 committed by Dmitry V. Levin
parent 843369ebe1
commit 92eb77e8c3

View File

@ -10,11 +10,11 @@ SYS_FUNC(reboot)
const unsigned int magic2 = tcp->u_arg[1];
const unsigned int cmd = tcp->u_arg[2];
printflags(bootflags1, magic1, "LINUX_REBOOT_MAGIC_???");
printxval(bootflags1, magic1, "LINUX_REBOOT_MAGIC_???");
tprints(", ");
printflags(bootflags2, magic2, "LINUX_REBOOT_MAGIC_???");
printxval(bootflags2, magic2, "LINUX_REBOOT_MAGIC_???");
tprints(", ");
printflags(bootflags3, cmd, "LINUX_REBOOT_CMD_???");
printxval(bootflags3, cmd, "LINUX_REBOOT_CMD_???");
if (cmd == LINUX_REBOOT_CMD_RESTART2) {
tprints(", ");
printstr(tcp, tcp->u_arg[3]);