]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[vesafb] Include raw status value within VBE error messages
authorMichael Brown <mcb30@ipxe.org>
Thu, 28 Nov 2013 11:50:31 +0000 (11:50 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 28 Nov 2013 11:51:32 +0000 (11:51 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/pcbios/vesafb.c

index e762a48e4d77779d685c30f73941cdbb3a77cffd..6b1acba82b2b6e816368f79a9ebf5f98f1271939 100644 (file)
@@ -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) "