aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-24 12:05:56 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-24 12:06:18 +0200
commit71eef2a19df159f26c653db3aaf3e6cb89886cd4 (patch)
treeba42803f2a9094c9f2c163294c9d091328578977 /src
parent7c95c5cd109d22302b4474ab61ccf8e07ff1dfbc (diff)
downloadgnunet-71eef2a19df159f26c653db3aaf3e6cb89886cd4.tar.gz
gnunet-71eef2a19df159f26c653db3aaf3e6cb89886cd4.zip
disambiguate error messages
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_common.h6
1 files 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);
761 * @ingroup logging 761 * @ingroup logging
762 * Use this for fatal errors that cannot be handled 762 * Use this for fatal errors that cannot be handled
763 */ 763 */
764#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) 764#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)
765 765
766 766
767/** 767/**
768 * @ingroup logging 768 * @ingroup logging
769 * Use this for fatal errors that cannot be handled 769 * Use this for fatal errors that cannot be handled
770 */ 770 */
771#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) 771#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)
772 772
773 773
774/** 774/**
@@ -778,7 +778,7 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind);
778 * @param cond Condition to evaluate 778 * @param cond Condition to evaluate
779 * @param comp Component string to use for logging 779 * @param comp Component string to use for logging
780 */ 780 */
781#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) 781#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)
782 782
783 783
784/** 784/**