Files
linux/kernel
Jianxiong Pan e8da821ba8 printk: fix print_time bug when run dmesg [1/1]
PD#SWPL-4900

Problem:
printk_prefix() passes NULL buf to print_time() to get the length of
the time prefix; when printk times are enable, the current code just
return "snprint(NULL, 0, "[%5lu.000000]", (unsigned long)ts)"
but in the SMP case, we add cpu core id at the end of time prefix, the
format is "[%5lu, %06lu@%d]", this gives a wrong size(shorter).

this will make buf get out of boundary, when run dmesg.

Solution:
replace [%5lu.000000] with [%5lu.000000@0]

Verify:
g12a-u200

Change-Id: Ic74b9f466b5af5aac7e6569a1afc7a46d9594050
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-03-13 20:22:40 +08:00
..
2018-05-09 12:28:25 +02:00
2018-05-30 13:19:56 +02:00
2018-05-30 13:19:56 +02:00
2017-09-02 07:07:53 +02:00
2018-07-17 12:36:18 +02:00
2018-07-03 18:27:19 +02:00
2018-07-11 16:40:16 +02:00
2016-01-22 18:04:28 -05:00
2016-04-04 09:46:47 -04:00
2018-05-01 16:49:34 +00:00
2017-08-11 13:55:02 -07:00
2018-04-14 15:40:56 +02:00
2017-10-12 22:31:24 +02:00
2015-04-12 21:03:31 +02:00
2015-11-23 09:44:58 +01:00
2018-02-26 09:18:03 +01:00
2016-02-16 13:04:58 -05:00
2017-05-20 14:28:40 +02:00
2015-01-17 10:02:23 +13:00
2016-03-01 20:36:56 +01:00
2018-05-30 13:19:56 +02:00
2018-05-09 09:50:20 +02:00
2018-04-03 11:15:30 -07:00
2016-09-22 20:00:36 -05:00
2018-05-09 19:39:28 -07:00
2018-05-09 19:39:28 -07:00