summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2020-07-25 14:26:24 +0200
committerReinhard Panhuber <[email protected]>2020-07-25 14:26:24 +0200
commite047fbe8fbc4727cee1fa720b82d4d6918a2d6c0 (patch)
tree6de402b58f82c14d7fc516c2351650ae3059ab94 /src/common
parentd91843bcd21262658b43480240e5dfc2b7d7bd20 (diff)
parent60355720364f66fff7856c3de1d18382f7912e31 (diff)
Merge remote-tracking branch 'upstream/master' into uac2
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index 4b4183ae6..1dba6c914 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -228,7 +228,6 @@ void tu_print_var(uint8_t const* buf, uint32_t bufsize)
for(uint32_t i=0; i<bufsize; i++) tu_printf("%02X ", buf[i]);
}
-
// Log with debug level 1
#define TU_LOG1 tu_printf
#define TU_LOG1_MEM tu_print_mem
@@ -243,9 +242,9 @@ void tu_print_var(uint8_t const* buf, uint32_t bufsize)
#define TU_LOG2 TU_LOG1
#define TU_LOG2_MEM TU_LOG1_MEM
#define TU_LOG2_VAR TU_LOG1_VAR
- #define TU_LOG2_LOCATION() TU_LOG1_LOCATION()
#define TU_LOG2_INT TU_LOG1_INT
#define TU_LOG2_HEX TU_LOG1_HEX
+ #define TU_LOG2_LOCATION() TU_LOG1_LOCATION()
#endif
@@ -279,6 +278,7 @@ static inline char const* lookup_find(lookup_table_t const* p_table, uint32_t ke
#define TU_LOG1_VAR(...)
#define TU_LOG1_INT(...)
#define TU_LOG1_HEX(...)
+ #define TU_LOG1_LOCATION()
#define TU_LOG1_FAILED()
#endif
@@ -288,6 +288,7 @@ static inline char const* lookup_find(lookup_table_t const* p_table, uint32_t ke
#define TU_LOG2_VAR(...)
#define TU_LOG2_INT(...)
#define TU_LOG2_HEX(...)
+ #define TU_LOG2_LOCATION()
#endif
#ifdef __cplusplus