diff mbox

ACPI, APEI, EINJ: fix malformed newline escape

Message ID 20170117145720.23998-1-colin.king@canonical.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Colin King Jan. 17, 2017, 2:57 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

The pr_warn message has a malformed newline escape, add in the
missing \

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/acpi/apei/einj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Borislav Petkov Jan. 17, 2017, 3:44 p.m. UTC | #1
On Tue, Jan 17, 2017 at 02:57:20PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The pr_warn message has a malformed newline escape, add in the
> missing \
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/acpi/apei/einj.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
> index eebb7e3..ec50c32 100644
> --- a/drivers/acpi/apei/einj.c
> +++ b/drivers/acpi/apei/einj.c
> @@ -711,7 +711,7 @@ static int __init einj_init(void)
>  
>  	rc = einj_check_table(einj_tab);
>  	if (rc) {
> -		pr_warn(FW_BUG "Invalid EINJ table.n");
> +		pr_warn(FW_BUG "Invalid EINJ table.\n");
>  		return -EINVAL;
>  	}
>  
> -- 

Reviewed-by: Borislav Petkov <bp@suse.de>
diff mbox

Patch

diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index eebb7e3..ec50c32 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -711,7 +711,7 @@  static int __init einj_init(void)
 
 	rc = einj_check_table(einj_tab);
 	if (rc) {
-		pr_warn(FW_BUG "Invalid EINJ table.n");
+		pr_warn(FW_BUG "Invalid EINJ table.\n");
 		return -EINVAL;
 	}