Use base "0" in strtoul for consistency with "mem="
authorMichael Brown <mcb30@etherboot.org>
Wed, 24 Jan 2007 22:54:08 +0000 (22:54 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 24 Jan 2007 22:54:08 +0000 (22:54 +0000)
src/arch/i386/image/bzimage.c

index fe640ee..41262e1 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 {
                } else if ( strcmp ( vga, "ask" ) == 0 ) {
                        exec_ctx->vid_mode = BZI_VID_MODE_ASK;
                } else {
-                       exec_ctx->vid_mode = strtoul ( vga, &vga, 10 );
+                       exec_ctx->vid_mode = strtoul ( vga, &vga, 0 );
                        if ( *vga && ( *vga != ' ' ) ) {
                                DBGC ( image, "bzImage %p strange \"vga=\""
                                       "terminator '%c'\n", image, *vga );
                        if ( *vga && ( *vga != ' ' ) ) {
                                DBGC ( image, "bzImage %p strange \"vga=\""
                                       "terminator '%c'\n", image, *vga );