Re: [PATCH 1/3] mm: page_alloc: Reduce object size by neatening printks

From: Andrew Morton
Date: Thu Mar 16 2017 - 18:53:58 EST


On Thu, 16 Mar 2017 11:37:56 -0700 Joe Perches <joe@xxxxxxxxxxx> wrote:

> > this can make it harder to read, in _the worst case_. one printk()
> > guaranteed that we would see a single line in the serial log/etc.
> > the sort of a problem with multiple printks is that printks coming
> > from other CPUs will split that "previously single" line.
>
> Not true. Note the multiple \n uses in the original code.

hm? Won't printk("a\na") atomically emit all three chars into the log
buffer?