aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-20 23:58:28 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-20 23:58:28 +0200
commit882a4ce1bb696d00abaa841ac88737765588cee9 (patch)
tree4f1d9faa0f4c01d547657eb1d73a834ad7d9ceb2
parent277cec42b1db901612648315ad7c7b838a0aaf6a (diff)
disable debug logic
-rw-r--r--src/gnsrecord/gnsrecord_serialization.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gnsrecord/gnsrecord_serialization.c b/src/gnsrecord/gnsrecord_serialization.c
index 5a862f82ff..77118ab946 100644
--- a/src/gnsrecord/gnsrecord_serialization.c
+++ b/src/gnsrecord/gnsrecord_serialization.c
@@ -37,6 +37,12 @@
#define LOG(kind,...) GNUNET_log_from (kind, "gnsrecord",__VA_ARGS__)
+/**
+ * Set to 1 to check that all records are well-formed (can be converted
+ * to string) during serialization/deserialization.
+ */
+#define DEBUG_GNSRECORDS 0
+
GNUNET_NETWORK_STRUCT_BEGIN
@@ -95,7 +101,7 @@ GNUNET_GNSRECORD_records_get_size (unsigned int rd_count,
return -1;
}
ret += rd[i].data_size;
-#if GNUNET_EXTRA_LOGGING
+#if DEBUG_GNSRECORDS
{
char *str;
@@ -170,7 +176,7 @@ GNUNET_GNSRECORD_records_serialize (unsigned int rd_count,
rd[i].data,
rd[i].data_size);
off += rd[i].data_size;
-#if GNUNET_EXTRA_LOGGING
+#if DEBUG_GNSRECORDS
{
char *str;