Commit d48e0400 authored by Artem Boldariev's avatar Artem Boldariev
Browse files

Merge branch 'artem/fix-build-with-DEBUG-defined' into 'main'

Fix build with DEBUG defined (-DDEBUG)

See merge request !4351
parents 9a5aa8cf a2361516
Pipeline #56295 failed with stages
in 236 minutes and 53 seconds
...@@ -566,6 +566,9 @@ serialize_node(FILE *file, dns_rbtnode_t *node, uintptr_t left, uintptr_t right, ...@@ -566,6 +566,9 @@ serialize_node(FILE *file, dns_rbtnode_t *node, uintptr_t left, uintptr_t right,
off_t file_position; off_t file_position;
unsigned char *node_data = NULL; unsigned char *node_data = NULL;
size_t datasize; size_t datasize;
#ifdef DEBUG
dns_name_t nodename;
#endif /* ifdef DEBUG */
INSIST(node != NULL); INSIST(node != NULL);
...@@ -618,8 +621,10 @@ serialize_node(FILE *file, dns_rbtnode_t *node, uintptr_t left, uintptr_t right, ...@@ -618,8 +621,10 @@ serialize_node(FILE *file, dns_rbtnode_t *node, uintptr_t left, uintptr_t right,
CHECK(isc_stdio_write(node_data, 1, datasize, file, NULL)); CHECK(isc_stdio_write(node_data, 1, datasize, file, NULL));
#ifdef DEBUG #ifdef DEBUG
dns_name_init(&nodename, NULL);
NODENAME(node, &nodename);
fprintf(stderr, "serialize "); fprintf(stderr, "serialize ");
dns_name_print(name, stderr); dns_name_print(&nodename, stderr);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
hexdump("node header", (unsigned char *)&temp_node, hexdump("node header", (unsigned char *)&temp_node,
sizeof(dns_rbtnode_t)); sizeof(dns_rbtnode_t));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment