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:
parent
843369ebe1
commit
92eb77e8c3
6
reboot.c
6
reboot.c
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user