]> granicus.if.org Git - strace/blobdiff - chmod.c
mmap_cache: add function to enable mmap_cache
[strace] / chmod.c
diff --git a/chmod.c b/chmod.c
index 83741c9e2abe9336a449b6d8c6027d8fba5a7e28..fd76490c08031f87ba340839b2fa7bcb8140cf23 100644 (file)
--- a/chmod.c
+++ b/chmod.c
@@ -4,7 +4,8 @@ static void
 decode_chmod(struct tcb *tcp, const int offset)
 {
        printpath(tcp, tcp->u_arg[offset]);
-       tprintf(", %#lo", tcp->u_arg[offset + 1]);
+       tprints(", ");
+       print_numeric_umode_t(tcp->u_arg[offset + 1]);
 }
 
 SYS_FUNC(chmod)
@@ -25,7 +26,8 @@ SYS_FUNC(fchmodat)
 SYS_FUNC(fchmod)
 {
        printfd(tcp, tcp->u_arg[0]);
-       tprintf(", %#lo", tcp->u_arg[1]);
+       tprints(", ");
+       print_numeric_umode_t(tcp->u_arg[1]);
 
        return RVAL_DECODED;
 }