lkml.org 
[lkml]   [2017]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: printk: what is going on with additional newlines?
    On Tue, Aug 29, 2017 at 4:50 PM, Steven Rostedt <rostedt@goodmis.org> wrote:
    >
    > What about using the seq_buf*() then?

    They do have the nice property that because we use them for various
    /proc files, there are some helper functions in addition to just the
    puts/printt/vprintf.

    Ie seq_buf_putmem_hex().

    And yeah, you can just do

    char buffer[80];
    struct seq_buf s;

    seq_buf_init(&s, buffer, sizeof(buffer));

    if you want to use a stack buffer for a single line.

    Linus

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