Multitech + KL46Z NanoService example with the RTOS
Dependencies: mbed SocketModem nanoservice_client_1_12
Diff: debug.h
- Revision:
- 9:5b116d75f41a
- Parent:
- 0:f739ace74102
--- a/debug.h Tue Feb 18 02:03:19 2014 +0000 +++ b/debug.h Tue Feb 18 04:56:33 2014 +0000 @@ -8,10 +8,16 @@ #if (DEBUG_LEVEL) == 2 #define DEBUG(x, ...) printf("[DEBUG: %s:%d] " x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); +#define WARNING(x, ...) printf("[WARNING: %s:%d] " x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); +#define ERROR(x, ...) printf("[ERROR: %s:%d] " x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #elif (DEBUG_LEVEL) == 1 #define DEBUG(x, ...) printf("[DEBUG] " x "\r\n", ##__VA_ARGS__); +#define WARNING(x, ...) printf("[WARNING] " x "\r\n", ##__VA_ARGS__); +#define ERROR(x, ...) printf("[ERROR] " x "\r\n", ##__VA_ARGS__); #elif (DEBUG_LEVEL) == 0 #define DEBUG(x, ...) +#define WARNING(x, ...) +#define ERROR(x, ...) #endif #endif // DEBUG_H \ No newline at end of file