]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't undef <unit>_TRACE, instead add comment how to enable it
authorOndřej Surý <ondrej@isc.org>
Fri, 13 Oct 2023 08:08:26 +0000 (10:08 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 13 Oct 2023 09:46:41 +0000 (11:46 +0200)
In units that support detailed reference tracing via ISC_REFCOUNT
macros, we were doing:

    /* Define to 1 for detailed reference tracing */
    #undef <unit>_TRACE

This would prevent using -D<unit>_TRACE=1 in the CFLAGS.

Convert the above mentioned snippet with just a comment how to enable
the detailed reference tracing:

    /* Add -D<unit>_TRACE=1 to CFLAGS for detailed reference tracing */

(cherry picked from commit 6afa9615342b4b7326b3878542efd704410c1e80)

lib/dns/include/dns/catz.h
lib/dns/include/dns/dispatch.h
lib/dns/include/dns/rpz.h

index 1401380ee95f045052871db4089e6c4f5fc92662..a2d02d6d32c0d14eebf8a4588e5c74c8466e4a8f 100644 (file)
 
 #pragma once
 
-/*
- * Define this for reference count tracing in the unit
- */
-#undef DNS_CATZ_TRACE
+/* Add -DDNS_CATZ_TRACE=1 to CFLAGS for detailed reference tracing */
 
 #include <inttypes.h>
 #include <stdbool.h>
index 96be0f4a9260ba027201320fd6d8701052800230..ad377f078ed6d777872e3f3a473f244b475a26e2 100644 (file)
@@ -58,7 +58,7 @@
 
 #include <dns/types.h>
 
-#undef DNS_DISPATCH_TRACE
+/* Add -DDNS_DISPATCH_TRACE=1 to CFLAGS for detailed reference tracing */
 
 ISC_LANG_BEGINDECLS
 
index 364ad925f5db2b4566a455c5f7d0b904941a5784..5885681dc8de3ae253ae12b2bf45ab335d6b585f 100644 (file)
 
 #pragma once
 
-/*
- * Define this for reference count tracing in the unit
- */
-#undef DNS_RPZ_TRACE
+/* Add -DDNS_RPZ_TRACE=1 to CFLAGS for detailed reference tracing */
 
 #include <inttypes.h>
 #include <stdbool.h>