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>
* Copyright (C) 2013 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
*/
+#define LOG_CATEGORY UCLASS_SPI
+
#include <common.h>
#include <console.h>
#include <malloc.h>
}
if (bitlen % 8) {
- printf("%s: bitlen is not 8bit alined %d", __func__, bitlen);
+ log_warning("bitlen is not 8bit aligned %d", bitlen);
return 1;
}