diff options
| author | hathach <[email protected]> | 2020-06-30 01:55:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-06-30 01:55:57 +0700 |
| commit | ab75998316fe714675e1193f0a7c06a32387ebd6 (patch) | |
| tree | 59158f32240bd9464214dfa38a1bc3237faadf6e /src/common | |
| parent | 2b1c7730b719c6d4abd7d1bfbfdb80b0d64ee892 (diff) | |
| parent | 2b9466dbc03221774d0f8943b7f07940c81d885d (diff) | |
Merge branch 'master' into add-stm-hs
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index d77893b6b..1dba6c914 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -235,6 +235,7 @@ void tu_print_var(uint8_t const* buf, uint32_t bufsize) #define TU_LOG1_INT(_x) tu_printf(#_x " = %ld\n", (uint32_t) (_x) ) #define TU_LOG1_HEX(_x) tu_printf(#_x " = %lX\n", (uint32_t) (_x) ) #define TU_LOG1_LOCATION() tu_printf("%s: %d:\r\n", __PRETTY_FUNCTION__, __LINE__) +#define TU_LOG1_FAILED() tu_printf("%s: %d: Failed\r\n", __PRETTY_FUNCTION__, __LINE__) // Log with debug level 2 #if CFG_TUSB_DEBUG > 1 @@ -278,6 +279,7 @@ static inline char const* lookup_find(lookup_table_t const* p_table, uint32_t ke #define TU_LOG1_INT(...) #define TU_LOG1_HEX(...) #define TU_LOG1_LOCATION() + #define TU_LOG1_FAILED() #endif #ifndef TU_LOG2 |
