From 92eb77e8c3e983e7ac2a2b94eef3740c7681de80 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Wed, 10 Jan 2018 05:25:40 +0100 Subject: [PATCH] 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. --- reboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reboot.c b/reboot.c index 381e4e89..376b994e 100644 --- a/reboot.c +++ b/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]);