Commit af4e6d3a03cf50c8aa635dd4479c0650f9745011
Committed by
Tom Rini
1 parent
8a3556edba
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
drivers: firmware: psci: use pr_* log functions instead of printf()
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>
Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff
drivers/firmware/psci.c
| ... | ... | @@ -13,6 +13,7 @@ |
| 13 | 13 | #include <libfdt.h> |
| 14 | 14 | #include <linux/arm-smccc.h> |
| 15 | 15 | #include <linux/errno.h> |
| 16 | +#include <linux/printk.h> | |
| 16 | 17 | #include <linux/psci.h> |
| 17 | 18 | |
| 18 | 19 | psci_fn *invoke_psci_fn; |
| ... | ... | @@ -48,7 +49,7 @@ |
| 48 | 49 | ret = device_bind_driver(dev, "psci-sysreset", "psci-sysreset", |
| 49 | 50 | NULL); |
| 50 | 51 | if (ret) |
| 51 | - debug("PSCI System Reset was not bound.\n"); | |
| 52 | + pr_debug("PSCI System Reset was not bound.\n"); | |
| 52 | 53 | } |
| 53 | 54 | |
| 54 | 55 | return 0; |
| ... | ... | @@ -62,7 +63,7 @@ |
| 62 | 63 | method = fdt_stringlist_get(gd->fdt_blob, dev_of_offset(dev), "method", |
| 63 | 64 | 0, NULL); |
| 64 | 65 | if (!method) { |
| 65 | - printf("missing \"method\" property\n"); | |
| 66 | + pr_warn("missing \"method\" property\n"); | |
| 66 | 67 | return -ENXIO; |
| 67 | 68 | } |
| 68 | 69 | |
| ... | ... | @@ -71,7 +72,7 @@ |
| 71 | 72 | } else if (!strcmp("smc", method)) { |
| 72 | 73 | invoke_psci_fn = __invoke_psci_fn_smc; |
| 73 | 74 | } else { |
| 74 | - printf("invalid \"method\" property: %s\n", method); | |
| 75 | + pr_warn("invalid \"method\" property: %s\n", method); | |
| 75 | 76 | return -EINVAL; |
| 76 | 77 | } |
| 77 | 78 |