diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-24 12:05:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-24 12:06:18 +0200 |
commit | 71eef2a19df159f26c653db3aaf3e6cb89886cd4 (patch) | |
tree | ba42803f2a9094c9f2c163294c9d091328578977 /src/include/gnunet_common.h | |
parent | 7c95c5cd109d22302b4474ab61ccf8e07ff1dfbc (diff) | |
download | gnunet-71eef2a19df159f26c653db3aaf3e6cb89886cd4.tar.gz gnunet-71eef2a19df159f26c653db3aaf3e6cb89886cd4.zip |
disambiguate error messages
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 6 |
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 | /** |