[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 06/06: disable debug logic
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 06/06: disable debug logic |
Date: |
Sun, 20 May 2018 23:59:10 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 882a4ce1bb696d00abaa841ac88737765588cee9
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun May 20 23:58:28 2018 +0200
disable debug logic
---
src/gnsrecord/gnsrecord_serialization.c | 10 ++++++++--
1 file 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 @@
#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;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (0a8c135ee -> 882a4ce1b), gnunet, 2018/05/20
- [GNUnet-SVN] [gnunet] 01/06: check return values from GNSRECORD_record_serialize/size always, gnunet, 2018/05/20
- [GNUnet-SVN] [gnunet] 04/06: update ignore, gnunet, 2018/05/20
- [GNUnet-SVN] [gnunet] 06/06: disable debug logic,
gnunet <=
- [GNUnet-SVN] [gnunet] 02/06: fix serialization/deserialization error in namestore deferred monitor logic, gnunet, 2018/05/20
- [GNUnet-SVN] [gnunet] 03/06: update ignore, gnunet, 2018/05/20
- [GNUnet-SVN] [gnunet] 05/06: update ignore, gnunet, 2018/05/20