[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: disambiguate error messages
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: disambiguate error messages |
Date: |
Sun, 24 Jun 2018 12:06:21 +0200 |
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 71eef2a19 disambiguate error messages
71eef2a19 is described below
commit 71eef2a19df159f26c653db3aaf3e6cb89886cd4
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jun 24 12:05:56 2018 +0200
disambiguate error messages
---
src/include/gnunet_common.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index d30b85bfc..ec91b35ad 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -761,14 +761,14 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind);
* @ingroup logging
* Use this for fatal errors that cannot be handled
*/
-#define GNUNET_assert(cond) do { if (! (cond)) {
GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d.\n"),
__FILE__, __LINE__); GNUNET_abort_(); } } while(0)
+#define GNUNET_assert(cond) do { if (! (cond)) {
GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d.
Aborting.\n"), __FILE__, __LINE__); GNUNET_abort_(); } } while(0)
/**
* @ingroup logging
* Use this for fatal errors that cannot be handled
*/
-#define GNUNET_assert_at(cond, f, l) do { if (! (cond)) {
GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d.\n"), f, l);
GNUNET_abort_(); } } while(0)
+#define GNUNET_assert_at(cond, f, l) do { if (! (cond)) {
GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d.
Aborting.\n"), f, l); GNUNET_abort_(); } } while(0)
/**
@@ -778,7 +778,7 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind);
* @param cond Condition to evaluate
* @param comp Component string to use for logging
*/
-#define GNUNET_assert_from(cond, comp) do { if (! (cond)) {
GNUNET_log_from(GNUNET_ERROR_TYPE_ERROR, comp, _("Assertion failed at
%s:%d.\n"), __FILE__, __LINE__); GNUNET_abort_(); } } while(0)
+#define GNUNET_assert_from(cond, comp) do { if (! (cond)) {
GNUNET_log_from(GNUNET_ERROR_TYPE_ERROR, comp, _("Assertion failed at %s:%d.
Aborting.\n"), __FILE__, __LINE__); GNUNET_abort_(); } } while(0)
/**
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: disambiguate error messages,
gnunet <=