mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ipmi: pr_err() strings should end with newlines
@ 2017-09-25  7:49 Arvind Yadav
  2017-09-27 20:35 ` Corey Minyard
  0 siblings, 1 reply; 2+ messages in thread
From: Arvind Yadav @ 2017-09-25  7:49 UTC (permalink / raw)
  To: minyard, luto; +Cc: openipmi-developer, linux-kernel

pr_err() messages should terminated with a new-line to avoid
other messages being concatenated onto the end.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/char/ipmi/ipmi_dmi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_dmi.c b/drivers/char/ipmi/ipmi_dmi.c
index 2a84401..66dafcd 100644
--- a/drivers/char/ipmi/ipmi_dmi.c
+++ b/drivers/char/ipmi/ipmi_dmi.c
@@ -71,13 +71,13 @@ static void __init dmi_add_platform_ipmi(unsigned long base_addr,
 		size = 2;
 		break;
 	default:
-		pr_err("ipmi:dmi: Invalid IPMI type: %d", type);
+		pr_err("ipmi:dmi: Invalid IPMI type: %d\n", type);
 		return;
 	}
 
 	pdev = platform_device_alloc(name, ipmi_dmi_nr);
 	if (!pdev) {
-		pr_err("ipmi:dmi: Error allocation IPMI platform device");
+		pr_err("ipmi:dmi: Error allocation IPMI platform device\n");
 		return;
 	}
 	pdev->driver_override = override;
@@ -239,7 +239,7 @@ static void __init dmi_decode_ipmi(const struct dmi_header *dm)
 				offset = 16;
 				break;
 			default:
-				pr_err("ipmi:dmi: Invalid offset: 0");
+				pr_err("ipmi:dmi: Invalid offset: 0\n");
 				return;
 			}
 		}
-- 
1.9.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipmi: pr_err() strings should end with newlines
  2017-09-25  7:49 [PATCH] ipmi: pr_err() strings should end with newlines Arvind Yadav
@ 2017-09-27 20:35 ` Corey Minyard
  0 siblings, 0 replies; 2+ messages in thread
From: Corey Minyard @ 2017-09-27 20:35 UTC (permalink / raw)
  To: Arvind Yadav, luto; +Cc: openipmi-developer, linux-kernel

On 09/25/2017 02:49 AM, Arvind Yadav wrote:
> pr_err() messages should terminated with a new-line to avoid
> other messages being concatenated onto the end.

Thanks, it's queued for the next release.

-corey

> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
>   drivers/char/ipmi/ipmi_dmi.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/char/ipmi/ipmi_dmi.c b/drivers/char/ipmi/ipmi_dmi.c
> index 2a84401..66dafcd 100644
> --- a/drivers/char/ipmi/ipmi_dmi.c
> +++ b/drivers/char/ipmi/ipmi_dmi.c
> @@ -71,13 +71,13 @@ static void __init dmi_add_platform_ipmi(unsigned long base_addr,
>   		size = 2;
>   		break;
>   	default:
> -		pr_err("ipmi:dmi: Invalid IPMI type: %d", type);
> +		pr_err("ipmi:dmi: Invalid IPMI type: %d\n", type);
>   		return;
>   	}
>   
>   	pdev = platform_device_alloc(name, ipmi_dmi_nr);
>   	if (!pdev) {
> -		pr_err("ipmi:dmi: Error allocation IPMI platform device");
> +		pr_err("ipmi:dmi: Error allocation IPMI platform device\n");
>   		return;
>   	}
>   	pdev->driver_override = override;
> @@ -239,7 +239,7 @@ static void __init dmi_decode_ipmi(const struct dmi_header *dm)
>   				offset = 16;
>   				break;
>   			default:
> -				pr_err("ipmi:dmi: Invalid offset: 0");
> +				pr_err("ipmi:dmi: Invalid offset: 0\n");
>   				return;
>   			}
>   		}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-27 20:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25  7:49 [PATCH] ipmi: pr_err() strings should end with newlines Arvind Yadav
2017-09-27 20:35 ` Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®