From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> libfdisk/src/script.c: In function ‘fdisk_script_read_context’: libfdisk/src/script.c:452:33: error: format ‘%zu’ expects argument of type ‘size_t’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] snprintf(buf, sizeof(buf), "%zu", fdisk_get_grain_size(cxt)); ^ Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- libfdisk/src/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index 24c40f8ce..e7cf1254e 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -449,7 +449,7 @@ int fdisk_script_read_context(struct fdisk_script *dp, struct fdisk_context *cxt if (!rc && fdisk_get_grain_size(cxt) != 2048 * 512) { char buf[64]; - snprintf(buf, sizeof(buf), "%zu", fdisk_get_grain_size(cxt)); + snprintf(buf, sizeof(buf), "%lu", fdisk_get_grain_size(cxt)); rc = fdisk_script_set_header(dp, "grain", buf); } -- 2.13.7