From a618acf68630dcd62d4fd8cc0cea6d91d395d3ec Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 8 Sep 2015 20:48:26 +0200 Subject: [PATCH] src/h5core/h5_errorhandling.c src/include/h5core/h5_errorhandling.h - h5_error(), h5_warn(), h5_info(): print message if debug-level > 3 --- src/h5core/h5_errorhandling.c | 3 +-- src/include/h5core/h5_errorhandling.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/h5core/h5_errorhandling.c b/src/h5core/h5_errorhandling.c index c85fdee..ddeaeec 100644 --- a/src/h5core/h5_errorhandling.c +++ b/src/h5core/h5_errorhandling.c @@ -244,7 +244,6 @@ h5_verror ( const char* fmt, va_list ap ) { - - if ((h5_debug_level & 0x3) < 1) return; + if (h5_debug_level == 0) return; h5priv_vprintf (stderr, "E", h5_call_stack.entry[0].name, fmt, ap); } diff --git a/src/include/h5core/h5_errorhandling.h b/src/include/h5core/h5_errorhandling.h index 11a66a6..f646433 100644 --- a/src/include/h5core/h5_errorhandling.h +++ b/src/include/h5core/h5_errorhandling.h @@ -246,7 +246,7 @@ h5_warn ( const char* fmt, ... ) { - if ((h5_debug_level & 0x3) >= 2) { + if (h5_debug_level >= 2) { va_list ap; va_start (ap, fmt); h5priv_vprintf (stderr, "W", h5_get_funcname(), fmt, ap); @@ -274,7 +274,7 @@ h5_info ( const char* fmt, ... ) { - if ((h5_debug_level & 0x3) == 3) { + if (h5_debug_level >= 3) { va_list ap; va_start (ap, fmt); h5priv_vprintf (stdout, "I", h5_get_funcname(), fmt, ap);