Преглед изворни кода

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 пре 10 година
родитељ
комит
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, ...)  \
 #define DEBUG(flag, format, ...)  \
   do \
   do \
     { \
     { \
-      if (_scute_debug_flags & (flag)) \
+      if (_scute_debug_flags & (flag) || flag == DBG_CRIT) \
         fprintf (_scute_debug_stream, \
         fprintf (_scute_debug_stream, \
                  DEBUG_PREFIX "%s: " format "\n", __func__, ##__VA_ARGS__); \
                  DEBUG_PREFIX "%s: " format "\n", __func__, ##__VA_ARGS__); \
     } \
     } \