Re: printk: what is going on with additional newlines?

From: Sergey Senozhatsky
Date: Tue Aug 29 2017 - 21:04:57 EST


On (08/29/17 11:09), Joe Perches wrote:
[..]
> > Introduce a few helper functions for it:
> >
> > init_line_buffer(&buf);
> > print_line(&buf, fmt, args);
> > vprint_line(&buf, fmt, vararg);
> > finish_line(&buf);
> >
> > or whatever, and it sounds like it should be pretty easy to use.
>
> Mostly true and not a new solution.
>
> You'll now need to add &buf to called functions that
> continue individual line output.
>
> Tejun Heo suggested the very similar mprintk back in 2008.
>
> http://thread.gmane.org/gmane.linux.ide/27199

interesting. thanks for the link.

-ss