Library to implement various levels of messages in cpp files

Dependents:   IoT_Ex BatteryModelTester BatteryModelTester

Revision:
5:34f9e8994d54
Parent:
4:695f0085a392
Child:
6:fef815be8d4f
--- a/messages.h	Tue Jan 17 16:20:07 2017 +0000
+++ b/messages.h	Wed Jan 18 21:38:34 2017 +0000
@@ -59,25 +59,25 @@
 #define MESSAGES_H
 
 #ifdef DEBUG
-#define DBG(serPort, x, ...) serPort->printf("["FUNCNAME" : DBG] "x" <line %d>\r\n", ##__VA_ARGS__,__LINE__);
+#define DBG(x, ...) printf("["FUNCNAME" : DBG] "x" <line %d>\r\n", ##__VA_ARGS__,__LINE__);
 #else
 #define DBG(x, ...)
 #endif
 
 #ifdef ERRMESSAGES
-#define ERR(serPort, x, ...) serPort->printf("["FUNCNAME" : ERR] "x"\r\n", ##__VA_ARGS__);
+#define ERR(x, ...) printf("["FUNCNAME" : ERR] "x"\r\n", ##__VA_ARGS__);
 #else
 #define ERR(x, ...)
 #endif
 
 #ifdef WARNMESSAGES
-#define WARN(serPort, x, ...) serPort->printf("["FUNCNAME" : WARN] "x"\r\n", ##__VA_ARGS__);
+#define WARN(x, ...) printf("["FUNCNAME" : WARN] "x"\r\n", ##__VA_ARGS__);
 #else
 #define WARN(x, ...)
 #endif
 
 #ifdef INFOMESSAGES
-#define INFO(serPort, x, ...) serPort->printf("["FUNCNAME" : INFO] "x"\r\n", ##__VA_ARGS__);
+#define INFO(x, ...) printf("["FUNCNAME" : INFO] "x"\r\n", ##__VA_ARGS__);
 #else
 #define INFO(x, ...)
 #endif