Commit d1738c3e authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Fix MDB_DEBUG in last ITS#7299 commit.

Make DPRINTF usable in if-else.  Silence signed vs unsigned warning.
parent d7935941
......@@ -260,11 +260,12 @@ typedef ID txnid_t;
# define DPRINTF (void) /* Vararg macros may be unsupported */
static int mdb_debug;
static int mdb_debug_start;
static txnid_t mdb_debug_start;
/** Print a debug message with printf formatting. */
# define DPRINTF(fmt, ...) /**< Requires 2 or more args */ \
if (mdb_debug) fprintf(stderr, "%s:%d " fmt "\n", __func__, __LINE__, __VA_ARGS__)
((void) ((mdb_debug) && \
fprintf(stderr, "%s:%d " fmt "\n", __func__, __LINE__, __VA_ARGS__)))
# define DPRINTF(fmt, ...) ((void) 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment