]> git.baikalelectronics.ru Git - uboot.git/commitdiff
drivers: spi: sh_qspi.c: Use log_warning() instead of printf()
authorPengfei Fan <fanpengfei1@eswincomputing.com>
Fri, 9 Dec 2022 01:39:51 +0000 (09:39 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 26 Jan 2023 15:23:20 +0000 (20:53 +0530)
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>
drivers/spi/sh_qspi.c

index 5ba8a8ea79f2231a6c230b835262b8bdddc4eda6..861423bef3fa2c6f2b5ec86b30c6bb5e1404544f 100644 (file)
@@ -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;
        }