mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-22 15:40:06 +00:00
Add __unused to variables that are only used if TU_LOG does something
This commit is contained in:
parent
d49938d0f5
commit
c81bc38d42
@ -134,11 +134,11 @@ typedef union TU_ATTR_PACKED
|
|||||||
|
|
||||||
TU_VERIFY_STATIC(sizeof(rp2040_buffer_control_t) == 2, "size is not correct");
|
TU_VERIFY_STATIC(sizeof(rp2040_buffer_control_t) == 2, "size is not correct");
|
||||||
|
|
||||||
static inline void print_bufctrl16(uint32_t u16)
|
static inline void print_bufctrl16(uint32_t __unused u16)
|
||||||
{
|
{
|
||||||
rp2040_buffer_control_t bufctrl;
|
rp2040_buffer_control_t __unused bufctrl = {
|
||||||
|
.u16 = u16
|
||||||
bufctrl.u16 = u16;
|
};
|
||||||
|
|
||||||
TU_LOG(2, "len = %u, available = %u, stall = %u, reset = %u, toggle = %u, last = %u, full = %u\r\n",
|
TU_LOG(2, "len = %u, available = %u, stall = %u, reset = %u, toggle = %u, last = %u, full = %u\r\n",
|
||||||
bufctrl.xfer_len, bufctrl.available, bufctrl.stall, bufctrl.reset_bufsel, bufctrl.data_toggle, bufctrl.last_buf, bufctrl.full);
|
bufctrl.xfer_len, bufctrl.available, bufctrl.stall, bufctrl.reset_bufsel, bufctrl.data_toggle, bufctrl.last_buf, bufctrl.full);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user