From bfcd31def938e918c5130d6f5bed550090482427 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 2 Mar 2012 21:28:11 -0300 Subject: [PATCH] Fix wrong printf format string This fixes build in 32 bits machines. --- libkmod/libkmod-index.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index e3850f6..5d3cdce 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "libkmod-private.h" #include "libkmod-index.h" @@ -800,7 +801,7 @@ struct index_mm *index_mm_open(struct kmod_ctx *ctx, const char *filename, if ((idx->mm = mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { - ERR(ctx, "mmap(0, %zd, PROT_READ, %d, MAP_PRIVATE, 0): %m\n", + ERR(ctx, "mmap(0, %"PRIu64", PROT_READ, %d, MAP_PRIVATE, 0): %m\n", st.st_size, fd); goto fail; } -- 2.7.4