lkml.org 
[lkml]   [2014]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] [kernel]: process: replace printk with pr_err
Date
On Thursday, October 16, 2014 10:36:35 AM Vishnu Pratap Singh wrote:
> This patch replaces printk(KERN_ERR...) with pr_err found.

What is the reason? Does the existing code cause any problems to happen?

> Signed-off-by: Vishnu Pratap Singh <vishnu.ps@samsung.com>
> ---
> kernel/power/process.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/power/process.c b/kernel/power/process.c
> index 7b32322..401f7ee 100644
> --- a/kernel/power/process.c
> +++ b/kernel/power/process.c
> @@ -85,7 +85,7 @@ static int try_to_freeze_tasks(bool user_only)
>
> if (todo) {
> printk("\n");
> - printk(KERN_ERR "Freezing of tasks %s after %d.%03d seconds "
> + pr_err("Freezing of tasks %s after %d.%03d seconds "
> "(%d tasks refusing to freeze, wq_busy=%d):\n",
> wakeup ? "aborted" : "failed",
> elapsed_msecs / 1000, elapsed_msecs % 1000,
>

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.


\
 
 \ /
  Last update: 2014-10-16 11:01    [W:0.035 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site