]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca3248b144b8d2e10df6dcc4fb5c6e4c582be83a
treea3100223a9f88f8566f8f19f36ad3e1a016b82d2
parent0f2586698c83fcbfe9aec8969e352f8338a3046e
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