From: Leesoo Ahn Date: Tue, 1 Sep 2020 13:04:47 +0000 (+0900) Subject: pktgen: fix error message with wrong function name X-Git-Tag: v5.9-rc4~28^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=355db39110100b968c8291a1a7d897f92e17a8df;p=thirdparty%2Fkernel%2Flinux.git pktgen: fix error message with wrong function name Error on calling kthread_create_on_node prints wrong function name, kernel_thread. Fixes: 94dcf29a11b3 ("kthread: use kthread_create_on_node()") Signed-off-by: Leesoo Ahn Acked-by: Gustavo A. R. Silva Signed-off-by: David S. Miller --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index b53b6d38c4dff..fce968b673b30 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -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);