diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-15 21:39:11 -0600 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-07-17 17:23:14 +0800 |
commit | e2e7de874766a1e7b21a7174bf88efa2ef6b6e56 (patch) | |
tree | 61c0db7b91b4caf891391154c323f0ded21404c1 /drivers/pch | |
parent | 6a324897825acdd54f31aeebfe0d29b7f6ab4d86 (diff) | |
download | u-boot-e2e7de874766a1e7b21a7174bf88efa2ef6b6e56.tar.gz u-boot-e2e7de874766a1e7b21a7174bf88efa2ef6b6e56.tar.bz2 u-boot-e2e7de874766a1e7b21a7174bf88efa2ef6b6e56.zip |
x86: Convert some debug statements to use logging
Move from using debug() to log_debug() so that we don't have to use the
__func__ parameter and can access other logging features.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/pch')
-rw-r--r-- | drivers/pch/pch9.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pch/pch9.c b/drivers/pch/pch9.c index 3bd011518b..3137eb2c28 100644 --- a/drivers/pch/pch9.c +++ b/drivers/pch/pch9.c @@ -3,6 +3,8 @@ * Copyright (C) 2014 Google, Inc */ +#define LOG_CATEGORY UCLASS_PCH + #include <common.h> #include <dm.h> #include <log.h> @@ -38,7 +40,7 @@ static int pch9_get_gpio_base(struct udevice *dev, u32 *gbasep) */ dm_pci_read_config32(dev, GPIO_BASE, &base); if (base == 0x00000000 || base == 0xffffffff) { - debug("%s: unexpected BASE value\n", __func__); + log_debug("unexpected BASE value\n"); return -ENODEV; } @@ -59,7 +61,7 @@ static int pch9_get_io_base(struct udevice *dev, u32 *iobasep) dm_pci_read_config32(dev, IO_BASE, &base); if (base == 0x00000000 || base == 0xffffffff) { - debug("%s: unexpected BASE value\n", __func__); + log_debug("unexpected BASE value\n"); return -ENODEV; } |