"vga=" is specified in decimal, not hex.
authorMichael Brown <mcb30@etherboot.org>
Mon, 22 Jan 2007 23:56:24 +0000 (23:56 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 22 Jan 2007 23:56:24 +0000 (23:56 +0000)
src/arch/i386/image/bzimage.c

index 5ca3aaf..fe640ee 100644 (file)
@@ -107,7 +107,7 @@ static int bzimage_parse_cmdline ( struct image *image,
                } else if ( strcmp ( vga, "ask" ) == 0 ) {
                        exec_ctx->vid_mode = BZI_VID_MODE_ASK;
                } else {
-                       exec_ctx->vid_mode = strtoul ( vga, &vga, 16 );
+                       exec_ctx->vid_mode = strtoul ( vga, &vga, 10 );
                        if ( *vga && ( *vga != ' ' ) ) {
                                DBGC ( image, "bzImage %p strange \"vga=\""
                                       "terminator '%c'\n", image, *vga );