diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-28 13:01:24 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-28 13:01:24 +0000 |
commit | ce50b8a84417f171483a2897d47bb20758d664ef (patch) | |
tree | 7d035214556fc0f9bc49028937da9ba3c0105f7c | |
parent | 395ccb4e9581ac7a54c8666371275d2ae90fcca0 (diff) | |
download | gnunet-ce50b8a84417f171483a2897d47bb20758d664ef.tar.gz gnunet-ce50b8a84417f171483a2897d47bb20758d664ef.zip |
disabling for debug
-rw-r--r-- | src/gnsrecord/gnsrecord_serialization.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gnsrecord/gnsrecord_serialization.c b/src/gnsrecord/gnsrecord_serialization.c index 4b54bd366..0c70ad246 100644 --- a/src/gnsrecord/gnsrecord_serialization.c +++ b/src/gnsrecord/gnsrecord_serialization.c | |||
@@ -119,11 +119,13 @@ GNUNET_GNSRECORD_records_serialize (unsigned int rd_count, | |||
119 | off = 0; | 119 | off = 0; |
120 | for (i=0;i<rd_count;i++) | 120 | for (i=0;i<rd_count;i++) |
121 | { | 121 | { |
122 | #if 0 | ||
122 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 123 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
123 | "Serializing record %u with flags %d and expiration time %llu\n", | 124 | "Serializing record %u with flags %d and expiration time %llu\n", |
124 | i, | 125 | i, |
125 | rd[i].flags, | 126 | rd[i].flags, |
126 | (unsigned long long) rd[i].expiration_time); | 127 | (unsigned long long) rd[i].expiration_time); |
128 | #endif | ||
127 | rec.expiration_time = GNUNET_htonll (rd[i].expiration_time); | 129 | rec.expiration_time = GNUNET_htonll (rd[i].expiration_time); |
128 | rec.data_size = htonl ((uint32_t) rd[i].data_size); | 130 | rec.data_size = htonl ((uint32_t) rd[i].data_size); |
129 | rec.record_type = htonl (rd[i].record_type); | 131 | rec.record_type = htonl (rd[i].record_type); |
@@ -175,11 +177,13 @@ GNUNET_GNSRECORD_records_deserialize (size_t len, | |||
175 | return GNUNET_SYSERR; | 177 | return GNUNET_SYSERR; |
176 | dest[i].data = &src[off]; | 178 | dest[i].data = &src[off]; |
177 | off += dest[i].data_size; | 179 | off += dest[i].data_size; |
180 | #if 0 | ||
178 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 181 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
179 | "Deserialized record %u with flags %d and expiration time %llu\n", | 182 | "Deserialized record %u with flags %d and expiration time %llu\n", |
180 | i, | 183 | i, |
181 | dest[i].flags, | 184 | dest[i].flags, |
182 | (unsigned long long) dest[i].expiration_time); | 185 | (unsigned long long) dest[i].expiration_time); |
186 | #endif | ||
183 | } | 187 | } |
184 | return GNUNET_OK; | 188 | return GNUNET_OK; |
185 | } | 189 | } |