Re: [PATCH] thermal: core: fix some format issues on critical shutdown string

From: Zhang Rui
Date: Tue Aug 08 2017 - 05:18:09 EST


On Sun, 2017-07-23 at 22:21 +0800, Icenowy Zheng wrote:
> The critical shutdown notice string used to have some spaces missing,
> which makes it not so pretty.
>
> Add the spaces to satisfy usual English space rules.
>
> Reported-by: Mingcong Bai <jeffbai@xxxxxxx>
> Signed-off-by: Icenowy Zheng <icenowy@xxxxxxx>

applied.

thanks,
rui
> ---
> Âdrivers/thermal/thermal_core.c | 2 +-
> Â1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/thermal_core.c
> b/drivers/thermal/thermal_core.c
> index 5a51c740e372..671e4d15599d 100644
> --- a/drivers/thermal/thermal_core.c
> +++ b/drivers/thermal/thermal_core.c
> @@ -390,7 +390,7 @@ static void handle_critical_trips(struct
> thermal_zone_device *tz,
> Â
> Â if (trip_type == THERMAL_TRIP_CRITICAL) {
> Â dev_emerg(&tz->device,
> - ÂÂ"critical temperature reached(%d
> C),shutting down\n",
> + ÂÂ"critical temperature reached (%d C),
> shutting down\n",
> Â ÂÂtz->temperature / 1000);
> Â mutex_lock(&poweroff_lock);
> Â if (!power_off_triggered) {