Add config option 'debug.rhizome_bind'

This commit is contained in:
Andrew Bettison 2013-10-04 03:46:52 +09:30
parent f5e7db089c
commit e3f64516d5
2 changed files with 2 additions and 1 deletions

View File

@ -260,6 +260,7 @@ ATOM(bool_t, slipdecode, 0, boolean,, "")
ATOM(bool_t, slipbytestream, 0, boolean,, "")
ATOM(bool_t, packetconstruction, 0, boolean,, "")
ATOM(bool_t, rhizome, 0, boolean,, "")
ATOM(bool_t, rhizome_bind, 0, boolean,, "")
ATOM(bool_t, rhizome_tx, 0, boolean,, "")
ATOM(bool_t, rhizome_rx, 0, boolean,, "")
ATOM(bool_t, rhizome_ads, 0, boolean,, "")

View File

@ -497,7 +497,7 @@ int _sqlite_vbind(struct __sourceloc __whence, int log_level, sqlite_retry_state
ext = strbuf_alloca(1);
}
#define BIND_DEBUG(TYP,FUNC,ARGFMT,...) \
if (config.debug.rhizome) \
if (config.debug.rhizome_bind) \
DEBUGF("%s%s %s(%d," ARGFMT ") %s", #TYP, strbuf_str(ext), #FUNC, index, ##__VA_ARGS__, sqlite3_sql(statement))
#define BIND_RETRY(FUNC, ...) \
do { \