summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorPengfei Fan <fanpengfei1@eswincomputing.com>2022-12-09 09:39:51 +0800
committerJagan Teki <jagan@amarulasolutions.com>2023-01-26 20:53:20 +0530
commit730fcadc67680df41dd126dc469bcb35e1993be6 (patch)
tree784d9bb188618d928983dc314dfe4a8367d99e4a /drivers/spi
parentd466f6209d49cc6247cb3c4157807ba930394140 (diff)
downloadu-boot-730fcadc67680df41dd126dc469bcb35e1993be6.tar.gz
u-boot-730fcadc67680df41dd126dc469bcb35e1993be6.tar.bz2
u-boot-730fcadc67680df41dd126dc469bcb35e1993be6.zip
drivers: spi: sh_qspi.c: Use log_warning() instead of printf()
Use log_warning() instead of printf() to print out driver information Signed-off-by: Pengfei Fan <fanpengfei1@eswincomputing.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/sh_qspi.c4
1 files changed, 3 insertions, 1 deletions
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@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;
}