Retry
Fork of ublox-at-cellular-interface by
Revision 5:f6706249d076, committed 2017-06-13
- Comitter:
- rob.meades@u-blox.com
- Date:
- Tue Jun 13 10:09:57 2017 +0100
- Parent:
- 4:96ced7d9b7ac
- Child:
- 6:63dad754c267
- Commit message:
- Make debug prints conditional on _debug_trace_on.
Changed in this revision
| UbloxATCellularInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UbloxATCellularInterface.cpp Tue Jun 13 01:41:53 2017 +0100 +++ b/UbloxATCellularInterface.cpp Tue Jun 13 10:09:57 2017 +0100 @@ -21,10 +21,10 @@ #include "mbed_trace.h" #define TRACE_GROUP "UACI" #else -#define tr_debug(format, ...) debug(format "\n", ## __VA_ARGS__) -#define tr_info(format, ...) debug(format "\n", ## __VA_ARGS__) -#define tr_warn(format, ...) debug(format "\n", ## __VA_ARGS__) -#define tr_error(format, ...) debug(format "\n", ## __VA_ARGS__) +#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 /**********************************************************************
