X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-wronghash-old.c;h=af82ea28f3d5b45716a6308b0a48b6c8fbe7c08b;hp=3f1955eec772f5ae1a0458a18dffc986050d854f;hb=426c8dc977d0fb46286042f7072d86bc053836a1;hpb=fdf3c148052f30d10e8c72fbdbdaf67d4a51b11e diff --git a/ccan/tdb/test/run-wronghash-old.c b/ccan/tdb/test/run-wronghash-old.c index 3f1955ee..af82ea28 100644 --- a/ccan/tdb/test/run-wronghash-old.c +++ b/ccan/tdb/test/run-wronghash-old.c @@ -22,8 +22,7 @@ static unsigned int non_jenkins_hash(TDB_DATA *key) static void log_fn(struct tdb_context *tdb, enum tdb_debug_level level, const char *fmt, ...) { unsigned int *count = tdb_get_logging_private(tdb); - /* Old code used to complain about spinlocks on new databases. */ - if (strstr(fmt, "spinlock")) + if (strstr(fmt, "wrong hash")) (*count)++; }