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)
downloadgnunet-882a4ce1bb696d00abaa841ac88737765588cee9.tar.gz
gnunet-882a4ce1bb696d00abaa841ac88737765588cee9.zip
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 5a862f82f..77118ab94 100644
--- a/src/gnsrecord/gnsrecord_serialization.c
+++ b/src/gnsrecord/gnsrecord_serialization.c
@@ -37,6 +37,12 @@
37 37
38#define LOG(kind,...) GNUNET_log_from (kind, "gnsrecord",__VA_ARGS__) 38#define LOG(kind,...) GNUNET_log_from (kind, "gnsrecord",__VA_ARGS__)
39 39
40/**
41 * Set to 1 to check that all records are well-formed (can be converted
42 * to string) during serialization/deserialization.
43 */
44#define DEBUG_GNSRECORDS 0
45
40GNUNET_NETWORK_STRUCT_BEGIN 46GNUNET_NETWORK_STRUCT_BEGIN
41 47
42 48
@@ -95,7 +101,7 @@ GNUNET_GNSRECORD_records_get_size (unsigned int rd_count,
95 return -1; 101 return -1;
96 } 102 }
97 ret += rd[i].data_size; 103 ret += rd[i].data_size;
98#if GNUNET_EXTRA_LOGGING 104#if DEBUG_GNSRECORDS
99 { 105 {
100 char *str; 106 char *str;
101 107
@@ -170,7 +176,7 @@ GNUNET_GNSRECORD_records_serialize (unsigned int rd_count,
170 rd[i].data, 176 rd[i].data,
171 rd[i].data_size); 177 rd[i].data_size);
172 off += rd[i].data_size; 178 off += rd[i].data_size;
173#if GNUNET_EXTRA_LOGGING 179#if DEBUG_GNSRECORDS
174 { 180 {
175 char *str; 181 char *str;
176 182