From patchwork Wed Nov 29 06:04:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 842477 X-Patchwork-Delegate: trini@ti.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="H3RI3JMT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ymqlG1wG7z9s84 for ; Wed, 29 Nov 2017 17:05:30 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D3672C21E24; Wed, 29 Nov 2017 06:05:25 +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 49D3DC21DB0; Wed, 29 Nov 2017 06:05:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9A0C5C21DAA; Wed, 29 Nov 2017 06:05:21 +0000 (UTC) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by lists.denx.de (Postfix) with ESMTPS id A3552C21D6A for ; Wed, 29 Nov 2017 06:05:20 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id vAT64iTx023242; Wed, 29 Nov 2017 15:04:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com vAT64iTx023242 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1511935484; bh=pFKJDtu9i/gY69YDQ2OPtriv89RvoL+FmRECHleHDiY=; h=From:To:Cc:Subject:Date:From; b=H3RI3JMT7iFzaRGwv5USD52Gu8mqr3/1bGKq+M7cTojRheMO1kEoSh8BtOFZCfI3m ea2JYBMzUNx5+re5p1LZYRif5d7GuT/wRFrx1b6D+Gq/XUFhy8bd8BBRUPFVl+Ya8r wYId3EOUooAQ7ZCSzOLzDRao5NcFxeZwNLnVCLaIhqnZ+4YIb+Cg5zyqXNK0KLVpwR mdO/nMUtGi4bLx106IfPdAX3253x5B15yYK8z8MTyS1ToW7cMLOQyOS9k2qFtgZWcf bHSbeGzQSE5+I2uJEOjZyckNjjPlQsYwgEEgIJHAxSMbUb+UUmuyYJooomBcPEY7Nt pYBPeUYMohJng== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 29 Nov 2017 15:04:40 +0900 Message-Id: <1511935480-5753-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] drivers: firmware: psci: use pr_* log functions instead of printf() 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" In Linux, the warning messages are printed out by pr_warn(). We can use Linux-like log functions in tree-wide. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- drivers/firmware/psci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 451fbde..cef8adc 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -13,6 +13,7 @@ #include #include #include +#include #include psci_fn *invoke_psci_fn; @@ -48,7 +49,7 @@ static int psci_bind(struct udevice *dev) ret = device_bind_driver(dev, "psci-sysreset", "psci-sysreset", NULL); if (ret) - debug("PSCI System Reset was not bound.\n"); + pr_debug("PSCI System Reset was not bound.\n"); } return 0; @@ -62,7 +63,7 @@ static int psci_probe(struct udevice *dev) method = fdt_stringlist_get(gd->fdt_blob, dev_of_offset(dev), "method", 0, NULL); if (!method) { - printf("missing \"method\" property\n"); + pr_warn("missing \"method\" property\n"); return -ENXIO; } @@ -71,7 +72,7 @@ static int psci_probe(struct udevice *dev) } else if (!strcmp("smc", method)) { invoke_psci_fn = __invoke_psci_fn_smc; } else { - printf("invalid \"method\" property: %s\n", method); + pr_warn("invalid \"method\" property: %s\n", method); return -EINVAL; }