]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Small debug output improvement when attaching an EDE.
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Mon, 15 Sep 2025 10:06:49 +0000 (12:06 +0200)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Mon, 15 Sep 2025 10:06:49 +0000 (12:06 +0200)
doc/Changelog
util/data/msgreply.c
util/data/msgreply.h

index b5e8be9974ee562513ecc3faaeae67d2465c0ced..3658bf608c08780ce0cb4e387a08c17ddf7dd393 100644 (file)
@@ -1,3 +1,6 @@
+15 September 2025: Yorgos
+       - Small debug output improvement when attaching an EDE.
+
 11 September 2025: Wouter
        - version set to 1.24.0 for release.
        - tag for 1.24.0rc1.
index 6b65e1eb18829809f88cc6000bdce367542152d1..ef9b66d4ac1eb709c583af6bdbf35c9d8835ae02 100644 (file)
@@ -1129,7 +1129,7 @@ int edns_opt_list_append_ede(struct edns_option** list, struct regional* region,
        prevp = list;
        while(*prevp != NULL)
                prevp = &((*prevp)->next);
-       verbose(VERB_ALGO, "attached EDE code: %d with message: %s", code, (txt?txt:"\"\""));
+       verbose(VERB_ALGO, "attached EDE code: %d with message: '%s'", code, (txt?txt:"\"\""));
        *prevp = opt;
        return 1;
 }
index b65abd922b05478a2374a407ae7667e17c4cea6e..1ec4e850b8e1401a75c47179cdcbb9ec7c0a0247 100644 (file)
@@ -597,7 +597,7 @@ int edns_opt_list_append(struct edns_option** list, uint16_t code, size_t len,
                        char text[sizeof(TXT) - 1];                     \
                } ede = { htons(CODE), TXT };                           \
                 verbose(VERB_ALGO, "attached EDE code: %d with"                \
-                        " message: %s", CODE, TXT);                    \
+                        " message: '%s'", CODE, TXT);                  \
                edns_opt_list_append((LIST), LDNS_EDNS_EDE,             \
                        sizeof(uint16_t) + sizeof(TXT) - 1,             \
                        (void *)&ede, (REGION));                        \