diff options
author | Samuel Holland <samuel@sholland.org> | 2023-01-22 02:30:12 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-01-26 20:47:45 +0300 |
commit | c2e13aa9e1a99da9334f0a666783c8f7dd98016f (patch) | |
tree | 5c266f2d85a9ff638ff94fe871cd83f2714ae686 /drivers | |
parent | b01ae03c0bbd77f70fdbbc076415ce5273808555 (diff) | |
download | u-boot-c2e13aa9e1a99da9334f0a666783c8f7dd98016f.tar.xz |
dm: core: Use full printf() format when possible
Use a more accurate check for determining if the full format string will
be handled correctly, since SPL_USE_TINY_PRINTF can be disabled.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/dump.c b/drivers/core/dump.c index 0c7d2ec4d0..3e77832a3a 100644 --- a/drivers/core/dump.c +++ b/drivers/core/dump.c @@ -39,7 +39,7 @@ static void show_devices(struct udevice *dev, int depth, int last_flag, u32 flags = dev_get_flags(dev); /* print the first 20 characters to not break the tree-format. */ - printf(IS_ENABLED(CONFIG_SPL_BUILD) ? " %s %d [ %c ] %s " : + printf(CONFIG_IS_ENABLED(USE_TINY_PRINTF) ? " %s %d [ %c ] %s " : " %-10.10s %3d [ %c ] %-20.20s ", dev->uclass->uc_drv->name, dev_get_uclass_index(dev, NULL), flags & DM_FLAG_ACTIVATED ? '+' : ' ', dev->driver->name); |