Эх сурвалжийг харах

Fix logging.

* src/debug.h (DEBUG): Display critical messages.
--
Previously, these messages were not displayed because DBG_CRIT is '0'.

Signed-off-by: Justus Winter <justus@g10code.com>
Justus Winter 9 жил өмнө
parent
commit
c4deb50419
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/debug.h

+ 1 - 1
src/debug.h

@@ -44,7 +44,7 @@ extern unsigned int _scute_debug_flags;
 #define DEBUG(flag, format, ...)  \
   do \
     { \
-      if (_scute_debug_flags & (flag)) \
+      if (_scute_debug_flags & (flag) || flag == DBG_CRIT) \
         fprintf (_scute_debug_stream, \
                  DEBUG_PREFIX "%s: " format "\n", __func__, ##__VA_ARGS__); \
     } \