ublox-cellular-driver-gen Fork
Fork of ublox-cellular-driver-gen by
Diff: UbloxCellularDriverGen.cpp
- Revision:
- 4:4f2c12992e17
- Parent:
- 3:027c9eaec52c
- Child:
- 5:b935404dcf7c
--- a/UbloxCellularDriverGen.cpp Tue Jun 13 00:29:44 2017 +0100 +++ b/UbloxCellularDriverGen.cpp Tue Jun 13 10:45:14 2017 +0100 @@ -19,9 +19,10 @@ #include "mbed_trace.h" #define TRACE_GROUP "UCID" #else -#define debug_if(_debug_trace_on, ...) (void(0)) // dummies if feature common pal is not added -#define tr_info(...) (void(0)) // dummies if feature common pal is not added -#define tr_error(...) (void(0)) // dummies if feature common pal is not added +#define tr_debug(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__) +#define tr_info(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__) +#define tr_warn(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__) +#define tr_error(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__) #endif /**********************************************************************