From: Rusty Russell Date: Tue, 4 Oct 2011 01:36:45 +0000 (+1030) Subject: tdb2: fix test printf for 64 bit. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=76d74cfb7c11764bd4df0611653190f87e56eefc tdb2: fix test printf for 64 bit. Very minor fix, since this won't happen unless the test fails. --- diff --git a/ccan/tdb2/test/api-check-callback.c b/ccan/tdb2/test/api-check-callback.c index fb980f22..1ea263d3 100644 --- a/ccan/tdb2/test/api-check-callback.c +++ b/ccan/tdb2/test/api-check-callback.c @@ -26,7 +26,7 @@ static enum TDB_ERROR check(struct tdb_data key, int val; if (key.dsize != sizeof(val)) { - diag("Wrong key size: %u\n", key.dsize); + diag("Wrong key size: %zu\n", key.dsize); return TDB_ERR_CORRUPT; }