From: Masahiro Yamada Date: Thu, 30 Nov 2017 04:45:26 +0000 (+0900) Subject: mtd: nand: denali_dt: replace printf() with pr_err() X-Git-Tag: v2018.01-rc1~1^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=681ed4d0d5096b16f81c54c3e5a5efdc9f5f0bc1;p=u-boot mtd: nand: denali_dt: replace printf() with pr_err() The Linux derived log functions can be used anywhere and easily turned on/off by CONFIG_LOGLEVEL. Signed-off-by: Masahiro Yamada --- diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c index 9d6cb09b42..c96512f2df 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); }