Browse Source

tdb2: fix test printf for 64 bit.

Very minor fix, since this won't happen unless the test fails.
Rusty Russell 14 years ago
parent
commit
76d74cfb7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/tdb2/test/api-check-callback.c

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

@@ -26,7 +26,7 @@ static enum TDB_ERROR check(struct tdb_data key,
 	int val;
 	int val;
 
 
 	if (key.dsize != sizeof(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;
 		return TDB_ERR_CORRUPT;
 	}
 	}