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.
Diff: source/debug.h
- Revision:
- 104:11e9605093c9
- Parent:
- 103:7b566b522427
- Child:
- 113:888e262ff0a9
diff -r 7b566b522427 -r 11e9605093c9 source/debug.h --- a/source/debug.h Thu May 02 21:50:17 2019 +0000 +++ b/source/debug.h Sun May 05 08:24:46 2019 +0000 @@ -32,7 +32,7 @@ #define DBG_RX_CMDDATA_SIZE_BYTES 32 -//#define dbg_printf(debug_level, ...) dbg_print(FILE_CODE, __LINE__, debug_level, __VA_ARGS__) +#define dbg_printf(debug_level, ...) dbg_print(FILE_CODE, __LINE__, debug_level, __VA_ARGS__) //-------- Constants & enums -------------------------------------------------// @@ -88,8 +88,9 @@ void print_debug_hex(const uint8_t* p_buf, uint16_t len); -void dbg_printf(uint8_t debug_level, const char *text, ...); -//void dbg_printf(uint8_t debug_level, ...); +//void dbg_printf(uint8_t debug_level, const char *text, ...); +void dbg_print(const char* file_name, uint16_t line_number, + uint8_t debug_level, const char *text, ...); //----------------------------------------------------------------------------// #endif /* DEBUG_H */