Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932263AbWBXSNv (ORCPT ); Fri, 24 Feb 2006 13:13:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932412AbWBXSNv (ORCPT ); Fri, 24 Feb 2006 13:13:51 -0500 Received: from albireo.ucw.cz ([84.242.65.108]:54661 "EHLO albireo.ucw.cz") by vger.kernel.org with ESMTP id S932263AbWBXSNu (ORCPT ); Fri, 24 Feb 2006 13:13:50 -0500 Date: Fri, 24 Feb 2006 19:13:46 +0100 From: Martin Mares To: Jan Engelhardt Cc: Asfand Yar Qazi , linux-kernel@vger.kernel.org Subject: Re: Kernel 'vga=' parameter wierdness Message-ID: References: <43FC1624.8090607@qazi.f2s.com> <200602221130.13872.vda@ilport.com.ua> <43FC54B8.7070706@qazi.f2s.com> <43FC574A.4000100@qazi.f2s.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1230 Lines: 28 Hello! > That /^0[xX][0-9a-fA-F]+$/ is required to interpret $_ as a hexadecimal > number, that /^0[0-7]+$/ is required to interpret it as an octal, > and everything else for a normal decimal number. > IOW, using strtol(my_vga_string, NULL, 0) everywhere (GRUB, as well as the > "vga selector" in the kernel). > And making sure the vga selector (i.e. when booting with > vga=ask) always prefix numbers with 0x when they are supposed to be in > hexadecimal, i.e. e.g. > for(i=0; ...) > printf("%#x %dx%d\n", i, vga_modes[i].width, vga_modes[i].height); > instead of currently > printf("%x %dx%d\n", ...) However, this would change meaning of numbers entered at the video mode prompt (with vga=ask), which doesn't look good. Have a nice fortnight -- Martin `MJ' Mares http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Uncle Ed's Rule of Thumb: Never use your thumb for a rule. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/