Re: [PATCH] printk: Fix incorrect length from print_time() whenseconds > 99999

From: Roland Dreier
Date: Sat Dec 29 2012 - 17:28:06 EST


On Sat, Dec 29, 2012 at 12:08 PM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> Sylvan Munaut did something similar
> https://lkml.org/lkml/2012/12/5/168

Missed that and duplicated the debugging :(
Sorry Sylvain.

I guess my patch may be preferable, since I happened to use the snprintf()
method that you suggest -- all the open-coded digit-counting seems a bit
verbose and perhaps hard to read and see the equivalence to the sprintf.

But certainly Sylvain fixed this quite a bit earlier and he should get credit.

- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/