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: 119928 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2657351qgn; Tue, 28 Nov 2017 22:05:32 -0800 (PST) X-Google-Smtp-Source: AGs4zMYLQybWZgRi9AguNoZj+S3ySONE3S4ddIyVI9VVx+jjs9utbGTOXbBPHo+VQXhQD3uLkgbR X-Received: by 10.80.146.227 with SMTP id l32mr6278236eda.114.1511935532379; Tue, 28 Nov 2017 22:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511935532; cv=none; d=google.com; s=arc-20160816; b=wjHrSeDffi90SNu2nQjjaUWfIL3J8TrRpNXdzV8cwhUNVrF4PShwFUt+ZM+8iGRVhr B4Q1fzXJdXJBRV49+3CSSC3D/wta1FynTsuX+E47kSDx/E1mxEb245d1HsV0CbcXbFvH QhOfQftJP24NQKDbJNp5PvMpFl/+v1DJxTXeEDRwDAABl/ElLk+tDwvZa0SgSmtcCxtP tDsDt3nFgrm+JBnDiYuVJrAo315hct5yISqniYbUBb3vqv5/RNKCVSEk0cwDRo4aHvg2 4IsRuBcsGvhDOxFW8H5/ZVdQ54G7xrO3HBQDxk9eEDGA+kghyGjz/5o90dEIxdEGPyJs RA5w== 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:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=Ysj/Fog4f8FzgP/Lt3jduJ+tsF6wpQjkkaKJBvQUXtw=; b=y/4d3d4vAp4Ll3hOfJFwhFtO3P7nEO+kTh6CII+0fvCy6kuTG22kE1YHtVhCmAhCgW ErdrbvhjwhHNzEQY/RQCLL1PZjZW1bQc6b1yD2YIPTPwOevH6cN0dbt2r0/p98fiva59 oz4jeWeqKnzUmYA9aWhqWz4DwZlkWD/7z2JMu1JHcODh4dJxdqtdOx3qY/zo+0cDbD4b U1j9GLAJTDPQbGan7nWCVEbkfJUUcWRkgIgP5vogaRLZvQ/pMvGWc36zL0cHNL7Xi0Pw 0aDcKsg3HSdLuIecVI2cEzu0J2zVojtPPRepCqHXahr7wKxctVEbHKJNzTafV5PoogaJ u7hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=H3RI3JMT; 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 k10si887988edi.551.2017.11.28.22.05.31; Tue, 28 Nov 2017 22:05:32 -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=H3RI3JMT; 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 97D65C21E24; 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; }