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 10 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,7 +173,7 @@ static int vesafb_mode_list ( uint16_t **mode_numbers ) {
173 173
 			       : "memory" );
174 174
 	if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
175 175
 		DBGC ( &vbe_buf, "VESAFB could not get controller information: "
176
-		       "%s\n", strerror ( rc ) );
176
+		       "[%04x] %s\n", status, strerror ( rc ) );
177 177
 		return rc;
178 178
 	}
179 179
 	if ( controller->vbe_signature != VBE_CONTROLLER_SIGNATURE ) {
@@ -230,8 +230,8 @@ static int vesafb_set_mode ( unsigned int mode_number,
230 230
 			       : "a" ( VBE_SET_MODE ),
231 231
 				 "b" ( mode_number ) );
232 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 235
 		return rc;
236 236
 	}
237 237
 
@@ -298,8 +298,8 @@ static int vesafb_select_mode ( unsigned int min_width, unsigned int min_height,
298 298
 				       : "memory" );
299 299
 		if ( ( rc = vesafb_rc ( status ) ) != 0 ) {
300 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 303
 			goto err_mode_info;
304 304
 		}
305 305
 		DBGC ( &vbe_buf, "VESAFB mode %04x %dx%d %dbpp(%d:%d:%d:%d) "

Loading…
Cancel
Save