Re: [PATCH] printk: Fix print_time length computation when no buffer is given

2012-12-06 Thread Joe Perches
On Thu, 2012-12-06 at 18:09 +0100, Sylvain Munaut wrote: > The "%5lu" part of the sprintf only guarantees a minimum length, > not a maximum one. This patch should make it correct for any > possible timestamp. > > This problem dates back from the printk conversion to records AFAICT. > > I've teste

[PATCH] printk: Fix print_time length computation when no buffer is given

2012-12-06 Thread Sylvain Munaut
The "%5lu" part of the sprintf only guarantees a minimum length, not a maximum one. This patch should make it correct for any possible timestamp. This problem dates back from the printk conversion to records AFAICT. I've tested this locally both by verifying 'dmesg' no longer segfaulted and also