Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SocketModem nanoservice_client_1_12
Diff: debug.h
- Revision:
- 9:5b116d75f41a
- Parent:
- 0:f739ace74102
diff -r f7d1fb34d71b -r 5b116d75f41a debug.h
--- 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
    