Use 0x%tx for uintptr_t
authorJagger <robert@swiecki.net>
Sat, 17 Oct 2015 17:14:57 +0000 (19:14 +0200)
committerJagger <robert@swiecki.net>
Sat, 17 Oct 2015 17:14:57 +0000 (19:14 +0200)
cmdline.c
contain.c

index 6f1eac27187e39ab265bbdcc45dc7a86ef37f913..b027b9e6337a7bde8bde8919abcf96f07cd7aeae 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -103,7 +103,7 @@ void cmdlineLogParams(struct nsjconf_t *nsjconf)
 
        struct mounts_t *p;
        LIST_FOREACH(p, &nsjconf->mountpts, pointers) {
-               LOG_I("Mount point: src:'%s' dst:'%s' type:'%s' flags:%tx options:'%s'",
+               LOG_I("Mount point: src:'%s' dst:'%s' type:'%s' flags:0x%tx options:'%s'",
                      p->src, p->dst, p->fs_type, p->flags, p->options);
        }
 }
index bf1421e2db172d4af2dd6737ba0725431e0d8599..c70d0a3f1acb0c24f5947b1548c368fec968b074 100644 (file)
--- a/contain.c
+++ b/contain.c
@@ -183,7 +183,7 @@ bool containPrepareEnv(struct nsjconf_t * nsjconf)
 
 static bool containMount(struct mounts_t *mpt, const char *dst)
 {
-       LOG_D("Mounting '%s' on '%s' (type:'%s', flags:0x%zx)", mpt->src, dst, mpt->fs_type,
+       LOG_D("Mounting '%s' on '%s' (type:'%s', flags:0x%tx)", mpt->src, dst, mpt->fs_type,
              mpt->flags);
 
        if (mkdir(dst, 0711) == -1 && errno != EEXIST) {