]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Check if ENABLE_DEBUG is defined instead of its value
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Jun 2021 16:47:33 +0000 (16:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Jun 2021 16:47:33 +0000 (16:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y
src/libpakfire/request.c

index 0a392d9b41e5a304cd8cb5ce6f7557d4b91e564e..bb83b9445bed57a219654f2c7e00650af993c875 100644 (file)
@@ -50,8 +50,8 @@
 
 // Enable to debug the grammar
 #define YYDEBUG 0
-#if ENABLE_DEBUG && YYDEBUG
-       int yydebug = 1;
+#ifdef ENABLE_DEBUG
+       int yydebug = YYDEBUG;
 #endif
 
 typedef void* yyscan_t;
index 608f67c89a3b706d6f2a52f0762b5a32a58fce4b..48ba947e12773e2ba33bea2e46e73556da41854c 100644 (file)
@@ -154,7 +154,7 @@ static int solve(struct pakfire_request* request, Queue* queue) {
 
        pakfire_pool_apply_changes(request->pakfire);
 
-#if ENABLE_DEBUG
+#ifdef ENABLE_DEBUG
        Pool* pool = pakfire_get_solv_pool(request->pakfire);
 
        const char* selection = pool_selection2str(pool, queue, 0);