summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-10-09 16:44:02 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-11-29 21:58:46 -0600
commitb6860b29dbb4c22ddbafa5a5a2b438b7f4bfe9a4 (patch)
tree322e154b9c097b113225437cee4469af8ecbddac
parent1be30282b4062745d63e85eec6c560666c0ac5ae (diff)
downloadapk-tools-b6860b29dbb4c22ddbafa5a5a2b438b7f4bfe9a4.tar.gz
apk-tools-b6860b29dbb4c22ddbafa5a5a2b438b7f4bfe9a4.tar.bz2
apk-tools-b6860b29dbb4c22ddbafa5a5a2b438b7f4bfe9a4.tar.xz
apk-tools-b6860b29dbb4c22ddbafa5a5a2b438b7f4bfe9a4.zip
solver: show debug output with runtime -vvvvv, not compile time -DDEBUG_PRINT
-rw-r--r--src/solver.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/solver.c b/src/solver.c
index 345656c..8f639c9 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -8,6 +8,7 @@
*/
#include <stdint.h>
+#include <stdio.h>
#include <unistd.h>
#include <strings.h>
#include "apk_defines.h"
@@ -17,14 +18,7 @@
#include "apk_print.h"
-//#define DEBUG_PRINT
-
-#ifdef DEBUG_PRINT
-#include <stdio.h>
-#define dbg_printf(args...) fprintf(stderr, args)
-#else
-#define dbg_printf(args...)
-#endif
+#define dbg_printf(args...) if (apk_verbosity > 5) { fprintf(stderr, args); }
#define ASSERT(cond, fmt...) if (!(cond)) { apk_error(fmt); *(char*)NULL = 0; }