2020-06-03 16:24:30

by Luca Ceresoli

[permalink] [raw]
Subject: [PATCH] power: reset: gpio-poweroff: add missing '\n' in dev_err()

dev_err() needs a terminating newline.

Signed-off-by: Luca Ceresoli <[email protected]>
---
drivers/power/reset/gpio-poweroff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c
index 6a4bbb506551..c5067eb75370 100644
--- a/drivers/power/reset/gpio-poweroff.c
+++ b/drivers/power/reset/gpio-poweroff.c
@@ -54,7 +54,7 @@ static int gpio_poweroff_probe(struct platform_device *pdev)
/* If a pm_power_off function has already been added, leave it alone */
if (pm_power_off != NULL) {
dev_err(&pdev->dev,
- "%s: pm_power_off function already registered",
+ "%s: pm_power_off function already registered\n",
__func__);
return -EBUSY;
}
--
2.26.2


2020-06-05 23:18:41

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH] power: reset: gpio-poweroff: add missing '\n' in dev_err()

Hi,

On Wed, Jun 03, 2020 at 06:21:18PM +0200, Luca Ceresoli wrote:
> dev_err() needs a terminating newline.
>
> Signed-off-by: Luca Ceresoli <[email protected]>
> ---

Thanks, queued.

-- Sebastian

> drivers/power/reset/gpio-poweroff.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c
> index 6a4bbb506551..c5067eb75370 100644
> --- a/drivers/power/reset/gpio-poweroff.c
> +++ b/drivers/power/reset/gpio-poweroff.c
> @@ -54,7 +54,7 @@ static int gpio_poweroff_probe(struct platform_device *pdev)
> /* If a pm_power_off function has already been added, leave it alone */
> if (pm_power_off != NULL) {
> dev_err(&pdev->dev,
> - "%s: pm_power_off function already registered",
> + "%s: pm_power_off function already registered\n",
> __func__);
> return -EBUSY;
> }
> --
> 2.26.2
>


Attachments:
(No filename) (944.00 B)
signature.asc (849.00 B)
Download all attachments