tdb2: fix test printf for 64 bit.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:36:45 +0000 (12:06 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:36:45 +0000 (12:06 +1030)
Very minor fix, since this won't happen unless the test fails.

ccan/tdb2/test/api-check-callback.c

index fb980f2276bd50ec111056d9c34286d88ee63d4b..1ea263d392d5ba94211393561cad5f06931d285c 100644 (file)
@@ -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;
        }