mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
usb: dwc3: debug: remove static char buffer from dwc3_decode_event()
Instead, we can require caller to pass a buffer for the function to use. This cleans things quite a bit. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
e42f09b85f
commit
3587f36a12
2 changed files with 9 additions and 8 deletions
|
@ -60,13 +60,15 @@ DECLARE_EVENT_CLASS(dwc3_log_event,
|
|||
TP_STRUCT__entry(
|
||||
__field(u32, event)
|
||||
__field(u32, ep0state)
|
||||
__dynamic_array(char, str, DWC3_MSG_MAX)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->event = event;
|
||||
__entry->ep0state = dwc->ep0state;
|
||||
),
|
||||
TP_printk("event (%08x): %s", __entry->event,
|
||||
dwc3_decode_event(__entry->event, __entry->ep0state))
|
||||
dwc3_decode_event(__get_str(str), __entry->event,
|
||||
__entry->ep0state))
|
||||
);
|
||||
|
||||
DEFINE_EVENT(dwc3_log_event, dwc3_event,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue