Messages in this thread | | | Subject | Re: [PATCH 1/1] rcutorture: fixes for printing message buffer | From | Joe Perches <> | Date | Fri, 11 Jul 2014 13:37:01 -0700 |
| |
On Fri, 2014-07-11 at 16:30 -0400, Pranith Kumar wrote: > Use snprintf() instead of sprintf() for writing to the message buffer. > Also use vmalloc() for the allocation of the message buffer. Since pr_alert() is > limited to print LOG_LINE_MAX characters at a time, we print the buffer in a > loop one line at a time. > > I tested this using the parse-torture.sh script as follows:
Did you see the patch I sent you? https://lkml.org/lkml/2014/6/20/604
It doesn't need a vmalloc. What is wrong with that approach?
| |