gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: fix MACRO syntax, improve logging


From: gnunet
Subject: [gnunet] branch master updated: fix MACRO syntax, improve logging
Date: Mon, 11 Jan 2021 17:38:40 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 8acff3af0 fix MACRO syntax, improve logging
8acff3af0 is described below

commit 8acff3af0c2862e556ddce96440db9a8c525f395
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jan 11 17:37:53 2021 +0100

    fix MACRO syntax, improve logging
---
 src/include/gnunet_time_lib.h | 2 +-
 src/pq/pq_result_helper.c     | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index 1237c4a65..38c372f23 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -179,7 +179,7 @@ GNUNET_NETWORK_STRUCT_END
 #define GNUNET_TIME_STD_BACKOFF(r) GNUNET_TIME_relative_min ( \
     GNUNET_TIME_STD_EXPONENTIAL_BACKOFF_THRESHOLD, \
     GNUNET_TIME_relative_multiply ( \
-      GNUNET_TIME_relative_max (GNUNET_TIME_UNIT_MILLISECONDS, (r)), 2));
+      GNUNET_TIME_relative_max (GNUNET_TIME_UNIT_MILLISECONDS, (r)), 2))
 
 
 /**
diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c
index 546822e45..205eb8fce 100644
--- a/src/pq/pq_result_helper.c
+++ b/src/pq/pq_result_helper.c
@@ -187,6 +187,11 @@ extract_fixed_blob (void *cls,
                      fnum);
   if (*dst_size != len)
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "Expected %u bytes for field `%s', got %u\n",
+                *dst_size,
+                fname,
+                len);
     GNUNET_break (0);
     return GNUNET_SYSERR;
   }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]