]> granicus.if.org Git - strace/blobdiff - sysmips.c
mmap_cache: add function to enable mmap_cache
[strace] / sysmips.c
index bc3cb8d56d694a3c615d1e4a462450f1df728123..e095cb3617226a98ec32f16ea678eb2e0baa17e2 100644 (file)
--- a/sysmips.c
+++ b/sysmips.c
@@ -1,6 +1,7 @@
 /*
  * Copyright (c) 2001 Wichert Akkerman <wichert@deephackmode.org>
  * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2014-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -45,7 +46,7 @@
 
 SYS_FUNC(sysmips)
 {
-       printxval_long(sysmips_operations, tcp->u_arg[0], "???");
+       printxval64(sysmips_operations, tcp->u_arg[0], "???");
        tprints(", ");
 
        switch (tcp->u_arg[0]) {
@@ -58,20 +59,21 @@ SYS_FUNC(sysmips)
                             nodename) < 0) {
                        printaddr(tcp->u_arg[1]);
                } else {
-                       print_quoted_string(nodename, __NEW_UTS_LEN + 1,
-                                           QUOTE_0_TERMINATED);
+                       print_quoted_cstring(nodename, __NEW_UTS_LEN + 1);
                }
                return RVAL_DECODED;
        }
        case MIPS_ATOMIC_SET:
-               tprintf("%#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
+               printaddr(tcp->u_arg[1]);
+               tprintf(", %#" PRI_klx, tcp->u_arg[2]);
                return RVAL_DECODED;
        case MIPS_FIXADE:
-               tprintf("0x%lx", tcp->u_arg[1]);
+               tprintf("%#" PRI_klx, tcp->u_arg[1]);
                return RVAL_DECODED;
        }
 
-       tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
+       tprintf("%" PRI_kld ", %" PRI_kld ", %" PRI_kld,
+               tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
        return RVAL_DECODED;
 }