]> granicus.if.org Git - strace/commitdiff
reboot.c: use printxval instead of printflags
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 10 Jan 2018 04:25:40 +0000 (05:25 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Jan 2018 15:54:33 +0000 (15:54 +0000)
Numeric arguments of reboot syscall are not flags but magic values.

* reboot.c (SYS_FUNC(reboot)): Replace printflags with printxval.

reboot.c

index 381e4e8955b64934131531d99f8caf4b2e26f72a..376b994ed729c9b3b1ab7b71f8b72b28f503e050 100644 (file)
--- 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]);