Get rid of gcc warning and fix build with -Werror Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx> --- libblkid/src/probe.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 33220df..7c1a020 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -1256,7 +1256,7 @@ int blkid_probe_set_magic(blkid_probe pr, blkid_loff_t offset, rc = blkid_probe_set_value(pr, "SBMAGIC", magic, len); if (!rc) rc = blkid_probe_sprintf_value(pr, - "SBMAGIC_OFFSET", "%llu", offset); + "SBMAGIC_OFFSET", "%llu", (unsigned long long)offset); break; case BLKID_CHAIN_PARTS: if (!(chn->flags & BLKID_PARTS_MAGIC)) @@ -1264,7 +1264,7 @@ int blkid_probe_set_magic(blkid_probe pr, blkid_loff_t offset, rc = blkid_probe_set_value(pr, "PTMAGIC", magic, len); if (!rc) rc = blkid_probe_sprintf_value(pr, - "PTMAGIC_OFFSET", "%llu", offset); + "PTMAGIC_OFFSET", "%llu", (unsigned long long)offset); break; default: break; -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html