summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/interface/pcbios/vesafb.c
diff options
context:
space:
mode:
authorMichael Brown2013-11-28 12:50:31 +0100
committerMichael Brown2013-11-28 12:51:32 +0100
commit9678fedbe4354d9ac9279e69a30c3ee32dfc92f3 (patch)
tree83cc862fb7bb7cd3d78267ede3a27760c20633d8 /src/arch/i386/interface/pcbios/vesafb.c
parent[vesafb] Add VESA frame buffer console (diff)
downloadipxe-9678fedbe4354d9ac9279e69a30c3ee32dfc92f3.tar.gz
ipxe-9678fedbe4354d9ac9279e69a30c3ee32dfc92f3.tar.xz
ipxe-9678fedbe4354d9ac9279e69a30c3ee32dfc92f3.zip
[vesafb] Include raw status value within VBE error messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386/interface/pcbios/vesafb.c')
-rw-r--r--src/arch/i386/interface/pcbios/vesafb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/i386/interface/pcbios/vesafb.c b/src/arch/i386/interface/pcbios/vesafb.c
index e762a48e..6b1acba8 100644
--- a/src/arch/i386/interface/pcbios/vesafb.c
+++ b/src/arch/i386/interface/pcbios/vesafb.c
@@ -173,7 +173,7 @@ static int vesafb_mode_list ( uint16_t **mode_numbers ) {
: "memory" );
if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
DBGC ( &vbe_buf, "VESAFB could not get controller information: "
- "%s\n", strerror ( rc ) );
+ "[%04x] %s\n", status, strerror ( rc ) );
return rc;
}
if ( controller->vbe_signature != VBE_CONTROLLER_SIGNATURE ) {
@@ -230,8 +230,8 @@ static int vesafb_set_mode ( unsigned int mode_number,
: "a" ( VBE_SET_MODE ),
"b" ( mode_number ) );
if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
- DBGC ( &vbe_buf, "VESAFB could not set mode %04x: %s\n",
- mode_number, strerror ( rc ) );
+ DBGC ( &vbe_buf, "VESAFB could not set mode %04x: [%04x] %s\n",
+ mode_number, status, strerror ( rc ) );
return rc;
}
@@ -298,8 +298,8 @@ static int vesafb_select_mode ( unsigned int min_width, unsigned int min_height,
: "memory" );
if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
DBGC ( &vbe_buf, "VESAFB could not get mode %04x "
- "information: %s\n", mode_number,
- strerror ( rc ) );
+ "information: [%04x] %s\n", mode_number,
+ status, strerror ( rc ) );
goto err_mode_info;
}
DBGC ( &vbe_buf, "VESAFB mode %04x %dx%d %dbpp(%d:%d:%d:%d) "