From: Patrick Delaunay Date: Fri, 6 Nov 2020 18:01:33 +0000 (+0100) Subject: gpio: stm32-gpio: migrate trace to dev and log macro X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=6dd89d9d5aa347b314c168310c3efb5d1b323749;p=u-boot.git gpio: stm32-gpio: migrate trace to dev and log macro Change debug to dev_dbg macro and define LOG_CATEGORY. Remove dev->name as it is already displayed by dev macro. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index 79d55e812d..7184db3c52 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -4,6 +4,8 @@ * Author(s): Vikas Manocha, for STMicroelectronics. */ +#define LOG_CATEGORY UCLASS_GPIO + #include #include #include @@ -331,7 +333,7 @@ static int gpio_stm32_probe(struct udevice *dev) dev_err(dev, "failed to enable clock\n"); return ret; } - debug("clock enabled for device %s\n", dev->name); + dev_dbg(dev, "clock enabled\n"); return 0; }