From: John Hodge Date: Sat, 19 Feb 2011 08:08:51 +0000 (+0800) Subject: Debugging fixes to cokebank X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c7448adda53f0faffbe81db31073728e4ce5990b;p=tpg%2Fopendispense2.git Debugging fixes to cokebank --- diff --git a/src/cokebank_sqlite/main.c b/src/cokebank_sqlite/main.c index e539105..72d4572 100644 --- a/src/cokebank_sqlite/main.c +++ b/src/cokebank_sqlite/main.c @@ -555,7 +555,7 @@ sqlite3_stmt *Bank_int_QuerySingle(sqlite3 *Database, const char *Query) // Prepare query ret = Bank_int_MakeStatemnt(Database, Query); if( !ret ) { - #if DEBUG + #if DEBUG >= 2 printf("Bank_int_QuerySingle: RETURN NULL ret=NULL\n"); #endif return NULL; @@ -565,7 +565,7 @@ sqlite3_stmt *Bank_int_QuerySingle(sqlite3 *Database, const char *Query) rv = sqlite3_step(ret); // - Empty result set if( rv == SQLITE_DONE ) { - #if DEBUG + #if DEBUG >= 2 printf("Bank_int_QuerySingle: RETURN NULL (rv == SQLITE_DONE)\n"); #endif return NULL; @@ -577,7 +577,7 @@ sqlite3_stmt *Bank_int_QuerySingle(sqlite3 *Database, const char *Query) return NULL; } - #if DEBUG + #if DEBUG >= 2 printf("Bank_int_QuerySingle: RETURN %p\n", ret); #endif return ret;