From 3bd686c5ad4756af1033ac14ba09a40156cc6d47 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 28 May 2013 16:53:56 +0930 Subject: tdb: fix logging of offets and lengths. We can have offsets > 2G, so use unsigned values. Fixes other prints to be native types rather than casts, too. Signed-off-by: Rusty Russell Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue May 28 11:22:14 CEST 2013 on sn-devel-104 --- lib/tdb/common/summary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb/common/summary.c') diff --git a/lib/tdb/common/summary.c b/lib/tdb/common/summary.c index ef2c49a2da..3c6f755727 100644 --- a/lib/tdb/common/summary.c +++ b/lib/tdb/common/summary.c @@ -152,7 +152,7 @@ _PUBLIC_ char *tdb_summary(struct tdb_context *tdb) break; default: TDB_LOG((tdb, TDB_DEBUG_ERROR, - "Unexpected record magic 0x%x at offset %d\n", + "Unexpected record magic 0x%x at offset %u\n", rec.magic, off)); goto unlock; } -- cgit