Browse Source

[vesafb] Include raw status value within VBE error messages

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
9678fedbe4
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/arch/i386/interface/pcbios/vesafb.c

+ 5
- 5
src/arch/i386/interface/pcbios/vesafb.c View File

173
 			       : "memory" );
173
 			       : "memory" );
174
 	if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
174
 	if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
175
 		DBGC ( &vbe_buf, "VESAFB could not get controller information: "
175
 		DBGC ( &vbe_buf, "VESAFB could not get controller information: "
176
-		       "%s\n", strerror ( rc ) );
176
+		       "[%04x] %s\n", status, strerror ( rc ) );
177
 		return rc;
177
 		return rc;
178
 	}
178
 	}
179
 	if ( controller->vbe_signature != VBE_CONTROLLER_SIGNATURE ) {
179
 	if ( controller->vbe_signature != VBE_CONTROLLER_SIGNATURE ) {
230
 			       : "a" ( VBE_SET_MODE ),
230
 			       : "a" ( VBE_SET_MODE ),
231
 				 "b" ( mode_number ) );
231
 				 "b" ( mode_number ) );
232
 	if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
232
 	if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
233
-		DBGC ( &vbe_buf, "VESAFB could not set mode %04x: %s\n",
234
-		       mode_number, strerror ( rc ) );
233
+		DBGC ( &vbe_buf, "VESAFB could not set mode %04x: [%04x] %s\n",
234
+		       mode_number, status, strerror ( rc ) );
235
 		return rc;
235
 		return rc;
236
 	}
236
 	}
237
 
237
 
298
 				       : "memory" );
298
 				       : "memory" );
299
 		if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
299
 		if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
300
 			DBGC ( &vbe_buf, "VESAFB could not get mode %04x "
300
 			DBGC ( &vbe_buf, "VESAFB could not get mode %04x "
301
-			       "information: %s\n", mode_number,
302
-			       strerror ( rc ) );
301
+			       "information: [%04x] %s\n", mode_number,
302
+			       status, strerror ( rc ) );
303
 			goto err_mode_info;
303
 			goto err_mode_info;
304
 		}
304
 		}
305
 		DBGC ( &vbe_buf, "VESAFB mode %04x %dx%d %dbpp(%d:%d:%d:%d) "
305
 		DBGC ( &vbe_buf, "VESAFB mode %04x %dx%d %dbpp(%d:%d:%d:%d) "

Loading…
Cancel
Save