[radio] Improve TRACE macro. (#4484)
This commit is contained in:
committed by
Bertrand Songis
parent
b12bd7d7be
commit
051a4638f3
+2
-2
@@ -57,8 +57,8 @@ uint8_t serial2TracesEnabled();
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TRACE_NOCRLF(...) do { debugPrintf(__VA_ARGS__); } while(0)
|
#define TRACE_NOCRLF(...) debugPrintf(__VA_ARGS__)
|
||||||
#define TRACE(...) do { debugPrintf(__VA_ARGS__); debugPrintf("\r\n"); } while(0)
|
#define TRACE(f_, ...) debugPrintf((f_ "\r\n"), ##__VA_ARGS__)
|
||||||
#define DUMP(data, size) dump(data, size)
|
#define DUMP(data, size) dump(data, size)
|
||||||
#define TRACE_DEBUG(...) debugPrintf("-D- " __VA_ARGS__)
|
#define TRACE_DEBUG(...) debugPrintf("-D- " __VA_ARGS__)
|
||||||
#define TRACE_DEBUG_WP(...) debugPrintf(__VA_ARGS__)
|
#define TRACE_DEBUG_WP(...) debugPrintf(__VA_ARGS__)
|
||||||
|
|||||||
Reference in New Issue
Block a user