Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933435AbdIYH0d (ORCPT ); Mon, 25 Sep 2017 03:26:33 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36973 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753372AbdIYH0b (ORCPT ); Mon, 25 Sep 2017 03:26:31 -0400 X-Google-Smtp-Source: AOwi7QDd0GXATgaMj9FVAKnVT7WEyuKY6cnaS96oZKHgMMK2cx8aNNR6DejrdPKFldjP2vGpJuzucw== From: Arvind Yadav To: gregkh@linuxfoundation.org, dtor@chromium.org, groeck@chromium.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] driver-core: pr_err() strings should end with newlines Date: Mon, 25 Sep 2017 12:55:28 +0530 Message-Id: <92e1add38caaa9a60cc0b872579e6ab8743c7c32.1506322697.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1401 Lines: 41 pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/base/test/test_async_driver_probe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/test/test_async_driver_probe.c b/drivers/base/test/test_async_driver_probe.c index 304d5c2..a3355d6 100644 --- a/drivers/base/test/test_async_driver_probe.c +++ b/drivers/base/test/test_async_driver_probe.c @@ -64,7 +64,7 @@ static int __init test_async_probe_init(void) NULL, 0); if (IS_ERR(async_dev_1)) { error = PTR_ERR(async_dev_1); - pr_err("failed to create async_dev_1: %d", error); + pr_err("failed to create async_dev_1: %d\n", error); return error; } @@ -91,7 +91,7 @@ static int __init test_async_probe_init(void) NULL, 0); if (IS_ERR(async_dev_2)) { error = PTR_ERR(async_dev_2); - pr_err("failed to create async_dev_2: %d", error); + pr_err("failed to create async_dev_2: %d\n", error); goto err_unregister_async_driver; } @@ -118,7 +118,7 @@ static int __init test_async_probe_init(void) NULL, 0); if (IS_ERR(sync_dev_1)) { error = PTR_ERR(sync_dev_1); - pr_err("failed to create sync_dev_1: %d", error); + pr_err("failed to create sync_dev_1: %d\n", error); goto err_unregister_sync_driver; } -- 1.9.1