usb: musb: tracing: Use the new __vstring() helper
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 5 Jul 2022 22:45:02 +0000 (18:45 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 19 Jul 2022 15:20:24 +0000 (11:20 -0400)
commit84149fc768bc82922ef72e56c0eef9512417980c
treea3100223a9f88f8566f8f19f36ad3e1a016b82d2
parent0ba4c9dede106c3e7ad2bb7e23eaa1393adc43a0
usb: musb: tracing: Use the new __vstring() helper

Instead of open coding a __dynamic_array() with a fixed length (which
defeats the purpose of the dynamic array in the first place). Use the new
__vstring() helper that will use a va_list and only write enough of the
string into the ring buffer that is needed.

Link: https://lkml.kernel.org/r/20220705224750.532345354@goodmis.org
Cc: Bin Liu <b-liu@ti.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
drivers/usb/musb/musb_trace.h