Browse Source

Merge commit '0d4edbe' into cg_merges_20131023a

Conflicts:
	driver-bflsc.c
	driver-bflsc.h
	logging.h
Luke Dashjr 12 years ago
parent
commit
d7c9c95bc7
1 changed files with 8 additions and 0 deletions
  1. 8 0
      logging.h

+ 8 - 0
logging.h

@@ -57,6 +57,14 @@ extern void _applog(int prio, const char *str);
 	} \
 } while (0)
 
+#define applogsiz(prio, _SIZ, fmt, ...) do { \
+	if (opt_debug || prio != LOG_DEBUG) { \
+			char tmp42[_SIZ]; \
+			snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
+			_applog(prio, tmp42); \
+	} \
+} while (0)
+
 #define applogr(rv, prio, ...)  do {  \
 	applog(prio, __VA_ARGS__);  \
 	return rv;  \