Browse Source

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 năm trước cách đây
mục cha
commit
c4deb50419
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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__); \
     } \