Re: [PATCH 1/1] rcutorture: fixes for printing message buffer

2014-08-13 Thread Paul E. McKenney
On Mon, Jul 14, 2014 at 09:26:32AM -0400, Pranith Kumar wrote: > On 07/11/2014 04:37 PM, Joe Perches wrote: > > 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 messa

Re: [PATCH 1/1] rcutorture: fixes for printing message buffer

2014-07-14 Thread Pranith Kumar
On 07/11/2014 04:37 PM, Joe Perches wrote: > 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 cha

Re: [PATCH 1/1] rcutorture: fixes for printing message buffer

2014-07-11 Thread Joe Perches
On Fri, 2014-07-11 at 17:09 -0400, Pranith Kumar wrote: > On Fri, Jul 11, 2014 at 4:37 PM, Joe Perches wrote: > > 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 me

Re: [PATCH 1/1] rcutorture: fixes for printing message buffer

2014-07-11 Thread Pranith Kumar
On Fri, Jul 11, 2014 at 4:37 PM, Joe Perches wrote: > 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_LI

Re: [PATCH 1/1] rcutorture: fixes for printing message buffer

2014-07-11 Thread Joe Perches
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 > loo

[PATCH 1/1] rcutorture: fixes for printing message buffer

2014-07-11 Thread Pranith Kumar
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 scr