]> granicus.if.org Git - strace/commitdiff
sysmips.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Jul 2015 21:35:41 +0000 (21:35 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Jul 2015 22:58:12 +0000 (22:58 +0000)
* sysmips.c [MIPS] (sys_sysmips): Update for RVAL_DECODED.

sysmips.c

index d7d5455e1dcb11bdb489b5a2ee33f674d0ce5410..36ee9b9db25bb6f17946fade343282baf1cfe237 100644 (file)
--- a/sysmips.c
+++ b/sysmips.c
 
 SYS_FUNC(sysmips)
 {
-       if (entering(tcp)) {
-               printxval(sysmips_operations, tcp->u_arg[0], "???");
-               if (!verbose(tcp)) {
-                       tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
-               } else if (tcp->u_arg[0] == SETNAME) {
-                       char nodename[__NEW_UTS_LEN + 1];
-                       tprints(", ");
-                       if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN + 1),
-                                    nodename) < 0) {
-                               tprintf("%#lx", tcp->u_arg[1]);
-                       } else {
-                               print_quoted_string(nodename, __NEW_UTS_LEN + 1,
-                                                   QUOTE_0_TERMINATED);
-                       }
-               } else if (tcp->u_arg[0] == MIPS_ATOMIC_SET) {
-                       tprintf(", %#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
-               } else if (tcp->u_arg[0] == MIPS_FIXADE) {
-                       tprintf(", 0x%lx", tcp->u_arg[1]);
+       printxval(sysmips_operations, tcp->u_arg[0], "???");
+       if (!verbose(tcp)) {
+               tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
+       } else if (tcp->u_arg[0] == SETNAME) {
+               char nodename[__NEW_UTS_LEN + 1];
+               tprints(", ");
+               if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN + 1),
+                            nodename) < 0) {
+                       tprintf("%#lx", tcp->u_arg[1]);
                } else {
-                       tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
+                       print_quoted_string(nodename, __NEW_UTS_LEN + 1,
+                                           QUOTE_0_TERMINATED);
                }
+       } else if (tcp->u_arg[0] == MIPS_ATOMIC_SET) {
+               tprintf(", %#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
+       } else if (tcp->u_arg[0] == MIPS_FIXADE) {
+               tprintf(", 0x%lx", tcp->u_arg[1]);
+       } else {
+               tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
        }
 
-       return 0;
+       return RVAL_DECODED;
 }
 
 #endif /* MIPS */