]> granicus.if.org Git - strace/blobdiff - mem.c
Fix signed/unsigned problems
[strace] / mem.c
diff --git a/mem.c b/mem.c
index 85f80a12af6851b2c2e2d215414d89eb243e429f..3c08d3d54a9753e6600fe2ac58c2a865840a6568 100644 (file)
--- a/mem.c
+++ b/mem.c
@@ -275,7 +275,7 @@ struct tcb *tcp;
                /* fd */
                tprintf(", %ld, ", u_arg[4]);
                /* offset */
-               tprintf("%#llx", get64(u_arg[5], u_arg[6]));
+               tprintf("%#llx", LONG_LONG(u_arg[5], u_arg[6]));
        }
        return RVAL_HEX;
 }
@@ -383,11 +383,11 @@ struct tcb *tcp;
 #ifdef MS_ASYNC
 
 static struct xlat mctl_sync[] = {
-       { MS_ASYNC,     "MS_ASYNC"      },
-       { MS_INVALIDATE,"MS_INVALIDATE" },
 #ifdef MS_SYNC
        { MS_SYNC,      "MS_SYNC"       },
 #endif
+       { MS_ASYNC,     "MS_ASYNC"      },
+       { MS_INVALIDATE,"MS_INVALIDATE" },
        { 0,            NULL            },
 };