From patchwork Thu Nov 30 04:45:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 842877 X-Patchwork-Delegate: yamada.m@jp.panasonic.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="ucXEAi/9"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ynPyr2cckz9sMN for ; Thu, 30 Nov 2017 15:47:32 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0B294C21E1D; Thu, 30 Nov 2017 04:46:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1FC7FC21E99; Thu, 30 Nov 2017 04:46:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 55FD4C21E5D; Thu, 30 Nov 2017 04:46:13 +0000 (UTC) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by lists.denx.de (Postfix) with ESMTPS id B43C1C21E79 for ; Thu, 30 Nov 2017 04:46:07 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id vAU4jfH1011804; Thu, 30 Nov 2017 13:45:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com vAU4jfH1011804 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1512017144; bh=WXGje9Ugutyy9DKsYqJTciIa2JihbDT9sK5fwoVKg3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ucXEAi/9OEkAU48gpOUdtnxqkQoxgLaBa8gpKLilwNc9Gk0oF4vE+LejuTwpfpgnk 22l93VYpfPA+GiPP464o9L/l13Y0JOovTEmK/1OHBo/86iq8K+UHRaHn8w/eZ6Nooz Fqf1X3acPORrnrYB/QfMfz54sh/22MpSfkDlGjAFcbwyjCKRlK7hCF9W3E60g+B0RT Y2a9PCbXhOLHcwKg8VVxr4YOsqYLlpQFoiNqxac2dHAWI8eYf+9wXM4JbCPWPkVk2L 2KKVDexQHX9A49/jj06r6z6JKMJLn0cMM7rQK4w9Y3wz/Reb9rbrNmwpZX3Nt661HJ QJIBN5Vu1xsAQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 30 Nov 2017 13:45:26 +0900 Message-Id: <1512017127-10986-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512017127-10986-1-git-send-email-yamada.masahiro@socionext.com> References: <1512017127-10986-1-git-send-email-yamada.masahiro@socionext.com> Cc: Marek Vasut , Scott Wood , Scott Wood Subject: [U-Boot] [PATCH 3/4] mtd: nand: denali_dt: replace printf() with pr_err() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The Linux derived log functions can be used anywhere and easily turned on/off by CONFIG_LOGLEVEL. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali_dt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c index 9d6cb09..c96512f 100644 --- a/drivers/mtd/nand/denali_dt.c +++ b/drivers/mtd/nand/denali_dt.c @@ -5,11 +5,11 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include #include #include #include #include +#include #include "denali.h" @@ -118,6 +118,6 @@ void board_nand_init(void) DM_GET_DRIVER(denali_nand_dt), &dev); if (ret && ret != -ENODEV) - printf("Failed to initialize Denali NAND controller. (error %d)\n", + pr_err("Failed to initialize Denali NAND controller. (error %d)\n", ret); }