From: Jonathan Lebon Date: Thu, 15 Oct 2020 16:05:34 +0000 (-0400) Subject: ostree-prepare-root: print st_dev and st_ino as 64-bit ints X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~6^2~18^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dec9eab2030a212b3713379af9d74c625ecce137;p=ostree.git ostree-prepare-root: print st_dev and st_ino as 64-bit ints This matches what systemd does and should work fine on all platforms. Possibly resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1888436 --- diff --git a/src/switchroot/ostree-prepare-root.c b/src/switchroot/ostree-prepare-root.c index 6351babb..6bc2c374 100644 --- a/src/switchroot/ostree-prepare-root.c +++ b/src/switchroot/ostree-prepare-root.c @@ -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;