Skip to content

Commit

Permalink
ipmi: pr_err() strings should end with newlines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arvind Yadav authored and Corey Minyard committed Sep 28, 2017
1 parent 106a846 commit daf9a4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/char/ipmi/ipmi_dmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit daf9a4e

Please sign in to comment.