lkml.org 
[lkml]   [2018]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v4 1/5] mm: Provide kernel parameter to allow disabling page init poisoning
On 2018-09-21 1:04 PM, Pasha Tatashin wrote:
>
>> + pr_err("vm_debug option '%c' unknown. skipped\n",
>> + *str);
>> + }
>> +
>> + str++;
>> + }
>> +out:
>> + if (page_init_poisoning && !__page_init_poisoning)
>> + pr_warn("Page struct poisoning disabled by kernel command line option 'vm_debug'\n");
>
> New lines '\n' can be removed, they are not needed for kprintfs.

No, that's not correct.

A printk without a newline termination is not emitted
as output until the next printk call. (To support KERN_CONT).
Therefore removing the '\n' causes a printk to not be printed when it is
called which can cause long delayed messages and subtle problems when
debugging. Always keep the newline in place even though the kernel will
add one for you if it's missing.

Logan

\
 
 \ /
  Last update: 2018-09-21 21:42    [W:0.075 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site