/**/
+#include "rscommon.h"
+
+DEBUG_DEFINE_SOME_DEBUGF(sql,sql_dprintf);
+
typedef struct {
int commodid, src_price, src_qty, dst_price, dst_qty;
} Trade;
Trade *trades;
} IslandPair;
-#include "rscommon.h"
-
static void ipair_gettrades(int si, int di) {
char *stmt= masprintf
("SELECT\n"
" GROUP BY sell.commodid, sell.price, buy.price\n",
si, di);
- printf("SQL\n[\n%s\n]\n", stmt);
+ sql_dprintf("SQL\n[\n%s\n]\n", stmt);
free(stmt);
}