diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-16 06:39:02 +0300 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-07-17 12:12:26 +0300 |
commit | b7d4df5a04733c19747de80b9dfdfdee58c9850d (patch) | |
tree | dc981b2e331bdcebccb17965f2478cc77f798b8d | |
parent | 7c10e111c18d73e1bb9c64c79e778c9976900d05 (diff) | |
download | u-boot-b7d4df5a04733c19747de80b9dfdfdee58c9850d.tar.xz |
pci: Adjust video BIOS debugging to be SPL-friendly
A hex value is expected for the VGA mode. Add a 0x prefix, since the #
construct is not supported in SPL. We don't want to add it, due to
code-size constraints.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r-- | drivers/pci/pci_rom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index bdfd1f03e7..503feb1e6d 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -273,7 +273,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), defined(CONFIG_FRAMEBUFFER_VESA_MODE) vesa_mode = CONFIG_FRAMEBUFFER_VESA_MODE; #endif - debug("Selected vesa mode %#x\n", vesa_mode); + debug("Selected vesa mode 0x%x\n", vesa_mode); if (exec_method & PCI_ROM_USE_NATIVE) { #ifdef CONFIG_X86 @@ -324,7 +324,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), log_debug("done\n"); #endif } - debug("Final vesa mode %#x\n", mode_info.video_mode); + debug("Final vesa mode %x\n", mode_info.video_mode); ret = 0; err: |