[PATCH v2 01/10] spi: dw: Convert calls to debug to log_*

Marek Vasut
2020-08-07T14:49:30Z

On 8/7/20 4:43 PM, Sean Anderson wrote:
[...]
> +#define LOG_CATEGORY UCLASS_SPI
> #include <common.h>
> #include <log.h>
> #include <asm-generic/gpio.h>
> @@ -139,7 +140,7 @@ static int request_gpio_cs(struct udevice *bus)
> return 0;
>
> if (ret < 0) {
> - printf("Error: %d: Can't get %s gpio!\n", ret, bus->name);
> + log_err("Error: %d: Can't get %s gpio!\n", ret, bus->name);

Can't we use dev_info() / pr_info() , same as the linux kernel does ?