diff options
| author | Jerry Palacios <[email protected]> | 2024-02-22 16:11:23 -0600 |
|---|---|---|
| committer | Jerry Palacios <[email protected]> | 2024-02-22 16:11:23 -0600 |
| commit | ec91660119c6ce4ccc6aa011f2c6cc9869ab9410 (patch) | |
| tree | aa7cc85bc5240f46a7a7c7c2b5d60c9008443526 /src/common | |
| parent | 6afd4a57896f9c9e794de3ab6eabc73d18be4bd0 (diff) | |
Revert "Merge branch 'hathach:master' into MCX"
This reverts commit 6afd4a57896f9c9e794de3ab6eabc73d18be4bd0, reversing
changes made to 5c14bd13da211ff2679115b0dba96ac80c1a516c.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_debug.h | 3 | ||||
| -rw-r--r-- | src/common/tusb_fifo.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/common/tusb_debug.h b/src/common/tusb_debug.h index 2e9f1d9cd..0f4dc93f3 100644 --- a/src/common/tusb_debug.h +++ b/src/common/tusb_debug.h @@ -60,7 +60,6 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent); static inline void tu_print_buf(uint8_t const* buf, uint32_t bufsize) { for(uint32_t i=0; i<bufsize; i++) tu_printf("%02X ", buf[i]); - tu_printf("\r\n"); } // Log with Level @@ -77,7 +76,7 @@ static inline void tu_print_buf(uint8_t const* buf, uint32_t bufsize) { #define TU_LOG1_MEM tu_print_mem #define TU_LOG1_BUF(_x, _n) tu_print_buf((uint8_t const*)(_x), _n) #define TU_LOG1_INT(_x) tu_printf(#_x " = %ld\r\n", (unsigned long) (_x) ) -#define TU_LOG1_HEX(_x) tu_printf(#_x " = 0x%lX\r\n", (unsigned long) (_x) ) +#define TU_LOG1_HEX(_x) tu_printf(#_x " = %lX\r\n", (unsigned long) (_x) ) // Log Level 2: Warn #if CFG_TUSB_DEBUG >= 2 diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c index 76696396b..d6c3db4ce 100644 --- a/src/common/tusb_fifo.c +++ b/src/common/tusb_fifo.c @@ -224,7 +224,6 @@ static void _ff_push_n(tu_fifo_t* f, void const * app_buf, uint16_t n, uint16_t if (wrap_bytes > 0) _ff_push_const_addr(ff_buf, app_buf, wrap_bytes); } break; - default: break; } } |
