ipmi: pr_err() strings should end with newlines
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 25 Sep 2017 07:49:57 +0000 (13:19 +0530)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Sep 2017 17:26:05 +0000 (12:26 -0500)
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>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_dmi.c

index d08d41903b0f910d4a371ddeed434ca430ab84cf..bb984176047bdbe99d7e4403def337c3277438a3 100644 (file)
@@ -79,7 +79,7 @@ static void __init dmi_add_platform_ipmi(unsigned long base_addr,
                si_type = SI_SMIC;
                break;
        default:
-               pr_err("ipmi:dmi: Invalid IPMI type: %d", type);
+               pr_err("ipmi:dmi: Invalid IPMI type: %d\n", type);
                return;
        }
 
@@ -102,7 +102,7 @@ static void __init dmi_add_platform_ipmi(unsigned long base_addr,
 
        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;
@@ -267,7 +267,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;
                        }
                }