lkml.org 
[lkml]   [2020]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/3] mtd: lpddr: Replace printk with pr_notice
From
Date


On 4/27/20 14:01, Joe Perches wrote:
> On Mon, 2020-04-27 at 14:03 -0500, Gustavo A. R. Silva wrote:
>> pr_notice is preferred over printk.
>
> So is coalescing formats
>
> ? diff --git a/include/linux/mtd/pfow.h b/include/linux/mtd/pfow.h
> []
>> @@ -127,31 +127,31 @@ static inline void print_drs_error(unsigned dsr)
>> int prog_status = (dsr & DSR_RPS) >> 8;
>>
>> if (!(dsr & DSR_AVAILABLE))
>> - printk(KERN_NOTICE"DSR.15: (0) Device not Available\n");
>> + pr_notice("DSR.15: (0) Device not Available\n");
>> if ((prog_status & 0x03) == 0x03)
>> - printk(KERN_NOTICE"DSR.9,8: (11) Attempt to program invalid "
>> + pr_notice("DSR.9,8: (11) Attempt to program invalid "
>> "half with 41h command\n");
>
> pr_notice("DSR.9,8: (11) Attempt to program invalid half with 41h command\n");
>

I didn't want to mess with the rest of format, because some maintainers
don't like that. If Miquel is OK with that, I can fix that up, too.

Thanks
--
Gustavo

\
 
 \ /
  Last update: 2020-04-27 21:06    [W:0.421 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site