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: 120072 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp223054qgn; Wed, 29 Nov 2017 20:48:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMagUU8wR5PrQz4LX9TD3deRuipMlxClLC2+FE1VjfxMdnaiIqm2CLqFy2CoE8p7ksnaBIR0 X-Received: by 10.80.140.176 with SMTP id q45mr11515046edq.186.1512017285992; Wed, 29 Nov 2017 20:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512017285; cv=none; d=google.com; s=arc-20160816; b=W6CrhB3NJ5Cz7wW3MEawf8PZVV1yvVglU6cMAeOctjo0feFbMhoZAPY0pppI8LfqHQ mPVo6ksEH3I+MCpYYn25AQDhxSit667IQvWf6zbS0rYgk1kubmyKXbdl4WRPOfDGB+3k 2ssUkO36EIi9oxteCYIiagwzAa5GAgakYqmKt+4O2ZHUWWdeDM1SATK9IY1oO7Cu8cQr RFKGsfzaNJXQV8t1P2kE0jHmK/RY0y368SLRe4g2pdWd/7PH5KF5E7cvcfx3Ns+MUBqb MuFjJ3hwLvTPQrZThs4mFSBlYs9+92ObMiZCNOjWM3U+VlLlMMtRYIsOImdFVcss0VbL /rQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=jf2tQF9RPOJlczN2nRhe03lni8geX6ATQP2qctVg4tg=; b=Qe3/+VO/5KEz49Sv/Rh2Lzo3ZUFN2c/fpDvp12hAs0YuAYpBgDaBo/Dbfe0vnp9P3G xmn6Zr+OtcbrQTS6lqpjBHQJKoerRzcPbJsxiFdr4AIom89o9QgH/Kjjg7WLfqBPvzL1 dw5RMubs7xyjjlMaS1hCBiu4/Lra2Gm1x2B0o+bSO5cyohjdD6hmC07ef5OGlBKPx2Wl NeZSfuCAgPJwMJ+ANiJgqeCZ56lVYySYm1gWsfQn38vyDE8iNDF/mKMZwc8dD68oEerS Fc00AydMR93Z5jxJLc5wBPyeKHxUJjpCLJS4woL5hj0pM5tk2m1HxeFLQL4EdV0eoznL +dOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=ucXEAi/9; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id n92si3052772edc.339.2017.11.29.20.48.05; Wed, 29 Nov 2017 20:48:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=ucXEAi/9; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 844CDC21E8E; 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); }