From: Pengfei Fan Date: Fri, 9 Dec 2022 01:39:51 +0000 (+0800) Subject: drivers: spi: sh_qspi.c: Use log_warning() instead of printf() X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=730fcadc67680df41dd126dc469bcb35e1993be6;p=u-boot.git 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 Reviewed-by: Simon Glass Reviewed-by: Jagan Teki --- 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 */ +#define LOG_CATEGORY UCLASS_SPI + #include #include #include @@ -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; }