diff options
| author | Patrick Delaunay <[email protected]> | 2020-11-06 19:01:43 +0100 |
|---|---|---|
| committer | Patrick Delaunay <[email protected]> | 2021-01-13 09:52:58 +0100 |
| commit | 8e80ba5af06c86892c92a88dca5012d8bfacf4af (patch) | |
| tree | 798057df3aca0bc7937cf8349517064626ad68c6 /drivers | |
| parent | ca9a9da65705bb8690d98d7c844b38f6f1364f4b (diff) | |
misc: rcc: migrate trace to dev macro
Change debug and pr_err to dev macro and define LOG_CATEGORY.
Signed-off-by: Patrick Delaunay <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/misc/stm32_rcc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index 86275454be0..4625e91396f 100644 --- a/drivers/misc/stm32_rcc.c +++ b/drivers/misc/stm32_rcc.c @@ -4,6 +4,8 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#define LOG_CATEGORY UCLASS_NOP + #include <common.h> #include <dm.h> #include <log.h> @@ -45,10 +47,10 @@ static int stm32_rcc_bind(struct udevice *dev) (struct stm32_rcc_clk *)dev_get_driver_data(dev); int ret; - debug("%s(dev=%p)\n", __func__, dev); + dev_dbg(dev, "RCC bind\n"); drv = lists_driver_lookup_name(rcc_clk->drv_name); if (!drv) { - debug("Cannot find driver '%s'\n", rcc_clk->drv_name); + dev_err(dev, "Cannot find driver '%s'\n", rcc_clk->drv_name); return -ENOENT; } |
