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

Marek Vasut marex at denx.de
Fri Aug 7 16:49:30 CEST 2020


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 ?


More information about the U-Boot mailing list