]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
network-list: Simplify debugging output on summarize
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Mar 2022 14:47:44 +0000 (14:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Mar 2022 14:47:44 +0000 (14:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/network-list.c

index 4f4f14685a3810ff624dd116e275f6a2e09514ba..f9552d62754fb34a5019471beeb97e15913b2c32 100644 (file)
@@ -363,12 +363,7 @@ int loc_network_list_summarize(struct loc_ctx* ctx,
                if (r)
                        return r;
 
-#ifdef ENABLE_DEBUG
-               const char* n = loc_network_str(network);
-               if (n) {
-                       DEBUG(ctx, "Found network %s\n", n);
-               }
-#endif
+               DEBUG(ctx, "Found network %s\n", loc_network_str(network));
 
                // Push network on the list
                r = loc_network_list_push(*list, network);