OSDN Git Service

of: thermal: Improve print information
authorYangtao Li <tiny.windzz@gmail.com>
Sun, 24 Feb 2019 07:10:58 +0000 (02:10 -0500)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 14 May 2019 03:35:34 +0000 (20:35 -0700)
commit7ffd87c63d36b28109c0d7898a1f44fea7d9dac8
treeb1188f044a4280bccab168e6bd27183827a008fc
parent1dcc242c7c75897bf0dfbcd1f563b7ab71cb4bb4
of: thermal: Improve print information

Define pr_fmt macro to add a prefix to the message,
this can make the thermal log better recognized.

Before:

[    0.602672] nfc: nfc_init: NFC Core ver 0.1
[    0.602828] NET: Registered protocol family 39
[    0.603435] clocksource: Switched to clocksource mct-frc
[    0.746216] failed to build thermal zone cpu-thermal: -22
[    0.746451] NET: Registered protocol family 2

After:

[    0.602804] NET: Registered protocol family 39
[    0.603463] clocksource: Switched to clocksource mct-frc
[    0.746309] thermal_sys: failed to build thermal zone cpu-thermal: -22
[    0.746545] NET: Registered protocol family 2

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/of-thermal.c