Browse Source

Merge commit 'c74d6a050' into bfgminer

Luke Dashjr 5 years ago
parent
commit
8b529337c8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      logging.h

+ 2 - 2
logging.h

@@ -55,7 +55,7 @@ extern void _applog(int prio, const char *str);
 #define IN_FMT_FFL " in %s %s():%d"
 
 #define applog(prio, fmt, ...) do { \
-	if (opt_debug || prio != LOG_DEBUG) { \
+	if (opt_debug || (prio) != LOG_DEBUG) { \
 			char tmp42[LOGBUFSIZ]; \
 			snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
 			_applog(prio, tmp42); \
@@ -63,7 +63,7 @@ extern void _applog(int prio, const char *str);
 } while (0)
 
 #define applogsiz(prio, _SIZ, fmt, ...) do { \
-	if (opt_debug || prio != LOG_DEBUG) { \
+	if (opt_debug || (prio) != LOG_DEBUG) { \
 			char tmp42[_SIZ]; \
 			snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
 			_applog(prio, tmp42); \