Add a no-op debug() define for non-debug builds and make valgrind optional in nbd_scenarios

This commit is contained in:
Alex Young
2012-05-31 13:53:04 +01:00
parent 623a398767
commit 074efd9fa4
2 changed files with 12 additions and 6 deletions

View File

@@ -15,6 +15,9 @@ void* xmalloc(size_t size);
void set_debug(int value);
#ifdef DEBUG
void debug(const char*msg, ...);
#else
/* no-op */
# define debug( msg, ...)
#endif
#define CLIENT_ERROR(msg, ...) \