X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ffree.c;h=ba14dfcd70747b8ad6789ba08487d30b91cbc6fc;hp=5d1bd3c6d1360d7c2a1b3498a58e3d7443ec0d18;hb=fc00f14087f911da23d1d89e02705c498447db22;hpb=299dc8f99ca642943db4f0204b5fe31065545d27;ds=sidebyside diff --git a/ccan/tdb2/free.c b/ccan/tdb2/free.c index 5d1bd3c6..ba14dfcd 100644 --- a/ccan/tdb2/free.c +++ b/ccan/tdb2/free.c @@ -116,7 +116,7 @@ static int remove_from_list(struct tdb_context *tdb, off = frec_prev(r) + offsetof(struct tdb_free_record, next); } -#ifdef DEBUG +#ifdef CCAN_TDB2_DEBUG if (tdb_read_off(tdb, off) != r_off) { tdb_logerr(tdb, TDB_ERR_CORRUPT, TDB_DEBUG_FATAL, "remove_from_list: %llu bad prev in list %llu", @@ -134,7 +134,7 @@ static int remove_from_list(struct tdb_context *tdb, off = r->next + offsetof(struct tdb_free_record,magic_and_prev); /* r->next->prev = r->prev */ -#ifdef DEBUG +#ifdef CCAN_TDB2_DEBUG if (tdb_read_off(tdb, off) & TDB_OFF_MASK != r_off) { tdb_logerr(tdb, TDB_ERR_CORRUPT, TDB_DEBUG_FATAL, "remove_from_list: %llu bad list %llu", @@ -171,7 +171,7 @@ static int enqueue_in_free(struct tdb_context *tdb, return -1; if (new.next) { -#ifdef DEBUG +#ifdef CCAN_TDB2_DEBUG if (tdb_read_off(tdb, new.next + offsetof(struct tdb_free_record, magic_and_prev))