[PATCH v2 2/2] drivers: spi: sh_qspi.c: Use log_warning() instead of printf()
Pengfei Fan
fanpengfei1 at eswincomputing.com
Fri Dec 9 02:39:51 CET 2022
Use log_warning() instead of printf() to print out driver information
Signed-off-by: Pengfei Fan <fanpengfei1 at eswincomputing.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
drivers/spi/sh_qspi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c
index 5ba8a8ea79..861423bef3 100644
--- a/drivers/spi/sh_qspi.c
+++ b/drivers/spi/sh_qspi.c
@@ -6,6 +6,8 @@
* Copyright (C) 2013 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>
*/
+#define LOG_CATEGORY UCLASS_SPI
+
#include <common.h>
#include <console.h>
#include <malloc.h>
@@ -160,7 +162,7 @@ static int sh_qspi_xfer_common(struct sh_qspi_slave *ss, unsigned int bitlen,
}
if (bitlen % 8) {
- printf("%s: bitlen is not 8bit alined %d", __func__, bitlen);
+ log_warning("bitlen is not 8bit aligned %d", bitlen);
return 1;
}
--
2.31.1.windows.1
More information about the U-Boot
mailing list