src/h5core/h5_errorhandling.c
src/include/h5core/h5_errorhandling.h - h5_error(), h5_warn(), h5_info(): print message if debug-level > 3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user