diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-04-21 11:27:20 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-04-21 11:28:03 +0200 |
commit | c8d6dd0821fda2cbceae25abf9ee9c4db992b100 (patch) | |
tree | 019ebf2de80e57793df92a3da7d93ea18def7d32 /src/lib/third_party/include | |
parent | ba993300311158c79c4880a621e43684d4b4a03d (diff) |
Improved debug output.improved/debug-out
* try to get rid of some `printf(..)`s as they do not belong to a shared library
* replaced all `exit(..)`s with `abort()`s to indicate an abnormal process termination
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/third_party/include')
-rw-r--r-- | src/lib/third_party/include/uthash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/third_party/include/uthash.h b/src/lib/third_party/include/uthash.h index 49c69df03..b7dfe4d3b 100644 --- a/src/lib/third_party/include/uthash.h +++ b/src/lib/third_party/include/uthash.h @@ -118,7 +118,7 @@ do { /* malloc failures result in lost memory, hash tables are unusable */ #ifndef uthash_fatal -#define uthash_fatal(msg) exit(-1) /* fatal OOM error */ +#define uthash_fatal(msg) abort() /* fatal OOM error */ #endif #define HASH_RECORD_OOM(oomed) uthash_fatal("out of memory") @@ -513,7 +513,7 @@ do { */ #ifdef HASH_DEBUG #include <stdio.h> /* fprintf, stderr */ -#define HASH_OOPS(...) do { fprintf(stderr, __VA_ARGS__); exit(-1); } while (0) +#define HASH_OOPS(...) do { fprintf(stderr, __VA_ARGS__); abort(); } while (0) #define HASH_FSCK(hh,head,where) \ do { \ struct UT_hash_handle *_thh; \ |