Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754036AbdDCQLo (ORCPT ); Mon, 3 Apr 2017 12:11:44 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34360 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753538AbdDCQLn (ORCPT ); Mon, 3 Apr 2017 12:11:43 -0400 Message-ID: <58e2743e.4233620a.3116a.c85f@mx.google.com> X-Google-Original-Message-ID: <20170403161137.GA26628@> Date: Mon, 3 Apr 2017 21:41:37 +0530 From: Varsha Rao To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org Subject: [PATCH 4/5] drivers: char: Replace printk with pr_err. References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 603 Lines: 22 Replace printk with pr_err to fix the checkpatch issue. Signed-off-by: Varsha Rao --- drivers/char/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/misc.c b/drivers/char/misc.c index 1312e29..c9cd1ea 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c @@ -294,7 +294,7 @@ static int __init misc_init(void) return 0; fail_printk: - printk("unable to get major %d for misc devices\n", MISC_MAJOR); + pr_err("unable to get major %d for misc devices\n", MISC_MAJOR); class_destroy(misc_class); fail_remove: if (ret) -- 2.9.3