]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
drivers: firmware: psci: use pr_* log functions instead of printf()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 29 Nov 2017 06:04:40 +0000 (15:04 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 4 Dec 2017 15:23:53 +0000 (10:23 -0500)
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 <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/firmware/psci.c

index 451fbdebba39e1dd8ea3c071d30ca1df6a489253..cef8adc81758318a3daae2e21fd02060f7fe893a 100644 (file)
@@ -13,6 +13,7 @@
 #include <libfdt.h>
 #include <linux/arm-smccc.h>
 #include <linux/errno.h>
+#include <linux/printk.h>
 #include <linux/psci.h>
 
 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;
        }