x86: pci: Display vesa modes in hex
The hex value is more commonly understood, so use that instead of decimal. Add a 0x prefix to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
f4a6f0aed0
commit
9a99caf3f3
@ -247,7 +247,7 @@ int pci_run_vga_bios(pci_dev_t dev, int (*int15_handler)(void), bool emulate)
|
|||||||
defined(CONFIG_FRAMEBUFFER_VESA_MODE)
|
defined(CONFIG_FRAMEBUFFER_VESA_MODE)
|
||||||
vesa_mode = CONFIG_FRAMEBUFFER_VESA_MODE;
|
vesa_mode = CONFIG_FRAMEBUFFER_VESA_MODE;
|
||||||
#endif
|
#endif
|
||||||
debug("Selected vesa mode %d\b", vesa_mode);
|
debug("Selected vesa mode %#x\n", vesa_mode);
|
||||||
if (emulate) {
|
if (emulate) {
|
||||||
#ifdef CONFIG_BIOSEMU
|
#ifdef CONFIG_BIOSEMU
|
||||||
BE_VGAInfo *info;
|
BE_VGAInfo *info;
|
||||||
@ -275,7 +275,7 @@ int pci_run_vga_bios(pci_dev_t dev, int (*int15_handler)(void), bool emulate)
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
debug("Final vesa mode %d\n", mode_info.video_mode);
|
debug("Final vesa mode %#x\n", mode_info.video_mode);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user