libfreerdp-utils/debug: add DEBUG_WARN.
authorVic Lee <llyzs@163.com>
Tue, 12 Jul 2011 04:57:40 +0000 (12:57 +0800)
committerVic Lee <llyzs@163.com>
Tue, 12 Jul 2011 04:57:40 +0000 (12:57 +0800)
include/freerdp/utils/debug.h

index 3810cba..c59efaf 100644 (file)
@@ -34,6 +34,7 @@
 #define DEBUG_NULL(fmt, ...) do { } while (0)
 #define DEBUG_PRINT(_dbg_str, fmt, ...) printf(_dbg_str fmt "\n" , __FUNCTION__, __LINE__, ## __VA_ARGS__)
 #define DEBUG_CLASS(_dbg_class, fmt, ...) DEBUG_PRINT("DBG_" #_dbg_class " %s (%d): ", fmt, ## __VA_ARGS__)
+#define DEBUG_WARN(fmt, ...) DEBUG_PRINT("Warning %s (%d): ", fmt, ## __VA_ARGS__)
 
 #ifdef WITH_DEBUG
 #define DEBUG(fmt, ...)        DEBUG_PRINT("DBG %s (%d): ", fmt, ## __VA_ARGS__)