From 5ba2e4fc391e3f894b9d939b9ae65f664e32bb0c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Mar 2012 13:37:51 +1030 Subject: lib/tdb2: fix error string formatting. This caused a crash on PPC64 when we failed the mmap (found by failtest, reported by Amitay) Signed-off-by: Rusty Russell --- lib/tdb2/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/tdb2/io.c') diff --git a/lib/tdb2/io.c b/lib/tdb2/io.c index b4a6f0beae..5634922db3 100644 --- a/lib/tdb2/io.c +++ b/lib/tdb2/io.c @@ -134,8 +134,8 @@ static enum TDB_ERROR tdb_oob(struct tdb_context *tdb, return TDB_SUCCESS; tdb_logerr(tdb, TDB_ERR_IO, TDB_LOG_ERROR, - "tdb_oob len %llu beyond eof at %zu", - (long long)(off + len), st.st_size); + "tdb_oob len %llu beyond eof at %llu", + (long long)(off + len), (long long)st.st_size); return TDB_ERR_IO; } -- cgit