* [PATCH] fix busted pr_info conversion in kernel/workqueue.c
@ 2014-05-27 18:28 Valdis Kletnieks
2014-05-27 18:44 ` Fabian Frederick
0 siblings, 1 reply; 5+ messages in thread
From: Valdis Kletnieks @ 2014-05-27 18:28 UTC (permalink / raw)
To: Fabian Frederick, Tejun Heo; +Cc: linux-kernel
(resend - first attempt ate the To: line)
commit 2d916033a318d7e763eb099c69600d5dcd1ccb6b
Author: Fabian Frederick <fabf@skynet.be>
Date: Mon May 12 13:59:35 2014 -0400
kernel/workqueue.c: pr_warning/pr_warn & printk/pr_info
This commit did an incorrect printk->pr_info conversion. If we were
converting to pr_info() we should lose the log_level parameter. The problem is
that this is called (indirectly) by show_regs_print_info(), which is called
with various log_levels (from _INFO clear to _EMERG). So we leave it as
a printk() call so the desired log_level is applied.
Not a full revert, as the other half of the patch is correct.
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
--- linux-next/kernel/workqueue.c.dist 2014-05-26 11:18:40.155380772 -0400
+++ linux-next/kernel/workqueue.c 2014-05-27 12:07:51.464678172 -0400
@@ -4440,7 +4440,7 @@ void print_worker_info(const char *log_l
probe_kernel_read(desc, worker->desc, sizeof(desc) - 1);
if (fn || name[0] || desc[0]) {
- pr_info("%sWorkqueue: %s %pf", log_lvl, name, fn);
+ printk("%sWorkqueue: %s %pf", log_lvl, name, fn);
if (desc[0])
pr_cont(" (%s)", desc);
pr_cont("\n");
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] fix busted pr_info conversion in kernel/workqueue.c
2014-05-27 18:28 [PATCH] fix busted pr_info conversion in kernel/workqueue.c Valdis Kletnieks
@ 2014-05-27 18:44 ` Fabian Frederick
2014-05-27 20:27 ` Valdis.Kletnieks
0 siblings, 1 reply; 5+ messages in thread
From: Fabian Frederick @ 2014-05-27 18:44 UTC (permalink / raw)
To: Valdis Kletnieks; +Cc: Tejun Heo, linux-kernel
Hello Valdis,
I thought Tejun directly reverted that patch (Joe Perches noticed
the level problem just after submit).Anyway, problem is solved now :)
Thanks,
Fabian
On Tue, 27 May 2014 14:28:59 -0400
Valdis Kletnieks <Valdis.Kletnieks@vt.edu> wrote:
> (resend - first attempt ate the To: line)
>
> commit 2d916033a318d7e763eb099c69600d5dcd1ccb6b
> Author: Fabian Frederick <fabf@skynet.be>
> Date: Mon May 12 13:59:35 2014 -0400
>
> kernel/workqueue.c: pr_warning/pr_warn & printk/pr_info
>
> This commit did an incorrect printk->pr_info conversion. If we were
> converting to pr_info() we should lose the log_level parameter. The problem is
> that this is called (indirectly) by show_regs_print_info(), which is called
> with various log_levels (from _INFO clear to _EMERG). So we leave it as
> a printk() call so the desired log_level is applied.
>
> Not a full revert, as the other half of the patch is correct.
>
> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
>
> --- linux-next/kernel/workqueue.c.dist 2014-05-26 11:18:40.155380772 -0400
> +++ linux-next/kernel/workqueue.c 2014-05-27 12:07:51.464678172 -0400
> @@ -4440,7 +4440,7 @@ void print_worker_info(const char *log_l
> probe_kernel_read(desc, worker->desc, sizeof(desc) - 1);
>
> if (fn || name[0] || desc[0]) {
> - pr_info("%sWorkqueue: %s %pf", log_lvl, name, fn);
> + printk("%sWorkqueue: %s %pf", log_lvl, name, fn);
> if (desc[0])
> pr_cont(" (%s)", desc);
> pr_cont("\n");
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] fix busted pr_info conversion in kernel/workqueue.c
2014-05-27 18:44 ` Fabian Frederick
@ 2014-05-27 20:27 ` Valdis.Kletnieks
2014-05-28 14:22 ` Tejun Heo
0 siblings, 1 reply; 5+ messages in thread
From: Valdis.Kletnieks @ 2014-05-27 20:27 UTC (permalink / raw)
To: Fabian Frederick; +Cc: Tejun Heo, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 407 bytes --]
On Tue, 27 May 2014 20:44:33 +0200, Fabian Frederick said:
> Hello Valdis,
>
> I thought Tejun directly reverted that patch (Joe Perches noticed
> the level problem just after submit).Anyway, problem is solved now :)
Tejun - can you see if that patch in fact got reverted? It made it
into the linux-next 20140529 tree somehow. (Perhaps the revert is in
a tree that didn't get pushed/pulled correctly?)
[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix busted pr_info conversion in kernel/workqueue.c
2014-05-27 20:27 ` Valdis.Kletnieks
@ 2014-05-28 14:22 ` Tejun Heo
0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2014-05-28 14:22 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Fabian Frederick, linux-kernel
On Tue, May 27, 2014 at 04:27:09PM -0400, Valdis.Kletnieks@vt.edu wrote:
> On Tue, 27 May 2014 20:44:33 +0200, Fabian Frederick said:
> > Hello Valdis,
> >
> > I thought Tejun directly reverted that patch (Joe Perches noticed
> > the level problem just after submit).Anyway, problem is solved now :)
>
> Tejun - can you see if that patch in fact got reverted? It made it
> into the linux-next 20140529 tree somehow. (Perhaps the revert is in
> a tree that didn't get pushed/pulled correctly?)
Hah, thought I did. Apparently didn't. Applying the patch.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] fix busted pr_info conversion in kernel/workqueue.c
@ 2014-05-27 17:25 Valdis Kletnieks
0 siblings, 0 replies; 5+ messages in thread
From: Valdis Kletnieks @ 2014-05-27 17:25 UTC (permalink / raw)
Cc: linux-kernel
commit 2d916033a318d7e763eb099c69600d5dcd1ccb6b
Author: Fabian Frederick <fabf@skynet.be>
Date: Mon May 12 13:59:35 2014 -0400
kernel/workqueue.c: pr_warning/pr_warn & printk/pr_info
This commit did an incorrect printk->pr_info conversion. If we were
converting to pr_info() we should lose the log_level parameter. The problem is
that this is called (indirectly) by show_regs_print_info(), which is called
with various log_levels (from _INFO clear to _EMERG). So we leave it as
a printk() call so the desired log_level is applied.
Not a full revert, as the other half of the patch is correct.
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
--- linux-next/kernel/workqueue.c.dist 2014-05-26 11:18:40.155380772 -0400
+++ linux-next/kernel/workqueue.c 2014-05-27 12:07:51.464678172 -0400
@@ -4440,7 +4440,7 @@ void print_worker_info(const char *log_l
probe_kernel_read(desc, worker->desc, sizeof(desc) - 1);
if (fn || name[0] || desc[0]) {
- pr_info("%sWorkqueue: %s %pf", log_lvl, name, fn);
+ printk("%sWorkqueue: %s %pf", log_lvl, name, fn);
if (desc[0])
pr_cont(" (%s)", desc);
pr_cont("\n");
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-28 14:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 18:28 [PATCH] fix busted pr_info conversion in kernel/workqueue.c Valdis Kletnieks
2014-05-27 18:44 ` Fabian Frederick
2014-05-27 20:27 ` Valdis.Kletnieks
2014-05-28 14:22 ` Tejun Heo
-- strict thread matches above, loose matches on Subject: below --
2014-05-27 17:25 Valdis Kletnieks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®