lkml.org 
[lkml]   [2017]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: printk: what is going on with additional newlines?
    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

    \
     
     \ /
      Last update: 2017-08-30 03:05    [W:4.060 / U:0.680 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site