ostree-prepare-root: print st_dev and st_ino as 64-bit ints
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 15 Oct 2020 16:05:34 +0000 (12:05 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 15 Oct 2020 16:26:47 +0000 (12:26 -0400)
This matches what systemd does and should work fine on all platforms.

Possibly resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1888436

src/switchroot/ostree-prepare-root.c

index 6351babbc452c05fccb39e1492a1fc3bc8a9a3eb..6bc2c374f4a010e6766f66a24f38951da0d77fcb 100644 (file)
@@ -152,8 +152,8 @@ resolve_deploy_path (const char * root_mountpoint)
                    "MESSAGE_ID=" SD_ID128_FORMAT_STR,
                    SD_ID128_FORMAT_VAL(OSTREE_PREPARE_ROOT_DEPLOYMENT_MSG),
                    "DEPLOYMENT_PATH=%s", resolved_path,
-                   "DEPLOYMENT_DEVICE=%u", stbuf.st_dev,
-                   "DEPLOYMENT_INODE=%u", stbuf.st_ino,
+                   "DEPLOYMENT_DEVICE=%" PRIu64, (uint64_t) stbuf.st_dev,
+                   "DEPLOYMENT_INODE=%" PRIu64, (uint64_t) stbuf.st_ino,
                    NULL);
 #endif
   return deploy_path;