Skip to contentSkip to conversation

tracing: Fix spelling mistake "preapre" -> "prepare"

PATCH In review Colin Ian King 2 participants 2 messages Sep 28, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracing: Fix spelling mistake "preapre" -> "prepare"

There is a spelling mistake in the trace text. Fix it.

---
 kernel/trace/trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace.c +1 -1
index d3005279165d..623c5691ab21 100644
@@ -10091,7 +10091,7 @@ __init static int tracer_alloc_buffers(void)
 	 * buffer. The memory will be removed once the "instance" is removed.
 	 */
 	ret = cpuhp_setup_state_multi(CPUHP_TRACE_RB_PREPARE,
-				      "trace/RB:preapre", trace_rb_cpu_prepare,
+				      "trace/RB:prepare", trace_rb_cpu_prepare,
 				      NULL);
 	if (ret < 0)
 		goto out_free_cpumask;
Signature · 1 line
2.37.1
maintainer
#1 lore raw
Quoted 12 lines · On Wed, 28 Sep 2022 22:58:28 +0100 Colin Ian King <[email protected]>…

There is a spelling mistake in the trace text. Fix it.

---
 kernel/trace/trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace.c +0 -0
index d3005279165d..623c5691ab21 100644

kernel/trace/trace.c __init static int tracer_alloc_buffers(void) · line 10094

Quoted 5 lines
kernel/trace/trace.c +1 -1
@@ -10091,7 +10091,7 @@ __init static int tracer_alloc_buffers(void)
 	 * buffer. The memory will be removed once the "instance" is removed.
 	 */
 	ret = cpuhp_setup_state_multi(CPUHP_TRACE_RB_PREPARE,
-				      "trace/RB:preapre", trace_rb_cpu_prepare,
+				      "trace/RB:prepare", trace_rb_cpu_prepare,

This is exposed to user space. Hopefully nobody is depending on it ;-)

kernel/trace/trace.c __init static int tracer_alloc_buffers(void) · line 10097

Quoted 3 lines
kernel/trace/trace.c +0 -0
 				      NULL);
 	if (ret < 0)
 		goto out_free_cpumask;

I'll risk the breakage. Thanks.

-- Steve