summaryrefslogtreecommitdiff
path: root/lib/tdb/common/summary.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-05-28 16:53:56 +0930
committerAndrew Bartlett <abartlet@samba.org>2013-05-28 11:22:14 +0200
commit3bd686c5ad4756af1033ac14ba09a40156cc6d47 (patch)
tree55d7d61637fa477e542f2d8c291835be0f8a415c /lib/tdb/common/summary.c
parent5a633dd6bb5be817c6b421df0c098e3428a20773 (diff)
downloadsamba-3bd686c5ad4756af1033ac14ba09a40156cc6d47.tar.gz
samba-3bd686c5ad4756af1033ac14ba09a40156cc6d47.tar.bz2
samba-3bd686c5ad4756af1033ac14ba09a40156cc6d47.zip
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 <rusty@rustcorp.com.au> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue May 28 11:22:14 CEST 2013 on sn-devel-104
Diffstat (limited to 'lib/tdb/common/summary.c')
-rw-r--r--lib/tdb/common/summary.c2
1 files changed, 1 insertions, 1 deletions
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;
}