Skip to contentSkip to conversation

pktgen: fix error message with wrong function name

PATCH In review Leesoo Ahn 3 participants 3 messages Sep 1, 2020

Subsystems (2)
lore
Share & tools
lore

Leesoo Ahn

author
#0 lore raw

PATCH 1/1 pktgen: fix error message with wrong function name

Error on calling kthread_create_on_node prints wrong function name, kernel_thread.

---
 net/core/pktgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/pktgen.c +1 -1
index 95f4c6b8f51a..44fdbb9c6e53 100644
@@ -3699,7 +3699,7 @@ static int __net_init pktgen_create_thread(int cpu, struct pktgen_net *pn)
 				   cpu_to_node(cpu),
 				   "kpktgend_%d", cpu);
 	if (IS_ERR(p)) {
-		pr_err("kernel_thread() failed for cpu %d\n", t->cpu);
+		pr_err("kthread_create_on_node() failed for cpu %d\n", t->cpu);
 		list_del(&t->th_list);
 		kfree(t);
 		return PTR_ERR(p);
Signature · 1 line
2.25.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Leesoo Ahn

Error on calling kthread_create_on_node prints wrong function name, kernel_thread.

You might need to add the following tag:

Fixes 94dcf29a11b3 ("kthread: use kthread_create_on_node()")

Thanks
--
Gustavo

Quoted 20 lines
---
 net/core/pktgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/pktgen.c +1 -1
index 95f4c6b8f51a..44fdbb9c6e53 100644
@@ -3699,7 +3699,7 @@ static int __net_init pktgen_create_thread(int cpu, struct pktgen_net *pn)
 				   cpu_to_node(cpu),
 				   "kpktgend_%d", cpu);
 	if (IS_ERR(p)) {
-		pr_err("kernel_thread() failed for cpu %d\n", t->cpu);
+		pr_err("kthread_create_on_node() failed for cpu %d\n", t->cpu);
 		list_del(&t->th_list);
 		kfree(t);
 		return PTR_ERR(p);
Signature · 1 line
2.25.4