Use %#x instead of %u
authorJagger <robert@swiecki.net>
Thu, 21 Jan 2016 23:50:45 +0000 (00:50 +0100)
committerJagger <robert@swiecki.net>
Thu, 21 Jan 2016 23:50:45 +0000 (00:50 +0100)
subproc.c

index c48bc93346268c087f614178e5e1c1806256278a..74e56ced82e2390b5dd26a796de2786b7abca7eb 100644 (file)
--- a/subproc.c
+++ b/subproc.c
@@ -219,7 +219,7 @@ void subprocRunChild(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_er
                }
                LOG_D("Entering namespace with flags: %#x", flags);
                if (unshare(flags) == -1) {
-                       PLOG_E("unshare(%u)", flags);
+                       PLOG_E("unshare(%#x)", flags);
                        _exit(EXIT_FAILURE);
                }
                subprocNewProc(nsjconf, fd_in, fd_out, fd_err, -1);