On 9/21/18 3:41 PM, Logan Gunthorpe wrote:
> 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.
OK. Thank you for clarifying Logan. I've seen new lines are being
removed in other patches,
Pavel
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
- [PATCH v4 0/5] Address issues slowing persistent memory in... Alexander Duyck
- [PATCH v4 1/5] mm: Provide kernel parameter to allow ... Alexander Duyck
- Re: [PATCH v4 1/5] mm: Provide kernel parameter t... Pasha Tatashin
- Re: [PATCH v4 1/5] mm: Provide kernel paramet... Logan Gunthorpe
- Re: [PATCH v4 1/5] mm: Provide kernel par... Pasha Tatashin
- [PATCH v4 2/5] mm: Create non-atomic version of SetPa... Alexander Duyck
- Re: [PATCH v4 2/5] mm: Create non-atomic version ... Pasha Tatashin
- [PATCH v4 4/5] async: Add support for queueing on spe... Alexander Duyck
- Re: [PATCH v4 4/5] async: Add support for queuein... Dan Williams
- Re: [PATCH v4 4/5] async: Add support for que... Alexander Duyck
- [PATCH v4 3/5] mm: Defer ZONE_DEVICE page initializat... Alexander Duyck
- Re: [PATCH v4 3/5] mm: Defer ZONE_DEVICE page ini... Pasha Tatashin
- Re: [PATCH v4 3/5] mm: Defer ZONE_DEVICE page... Alexander Duyck
- Re: [PATCH v4 3/5] mm: Defer ZONE_DEVICE ... Pasha Tatashin
- [PATCH v4 5/5] nvdimm: Schedule device registration o... Alexander Duyck
