- Small debug output improvement when attaching an EDE.

This commit is contained in:
Yorgos Thessalonikefs 2025-09-15 12:06:49 +02:00
parent d71ead5598
commit c3a8d5251f
3 changed files with 5 additions and 2 deletions

View 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.

View 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;
}

View 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)); \