Received: from [140.186.70.92] (port=42258 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJugG-0001II-1p for qemu-devel@nongnu.org; Wed, 02 Jun 2010 16:36:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJugE-0006ZR-RU for qemu-devel@nongnu.org; Wed, 02 Jun 2010 16:36:51 -0400 Received: from mail.gmx.net ([213.165.64.20]:55192) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OJugE-0006Ya-Fh for qemu-devel@nongnu.org; Wed, 02 Jun 2010 16:36:50 -0400 Message-ID: <91C34B38E9C44C66949B24B08B310590@FSCPC> From: "Sebastian Herbszt" References: <4BFFE03F.40606@redhat.com> <915D11B7A1EA4FDC80761D20504E920B@FSCPC> <20100601233451.GA29184@morn.localdomain> In-Reply-To: <20100601233451.GA29184@morn.localdomain> Date: Wed, 2 Jun 2010 22:35:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [SeaBIOS] SMBIOS strings List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: seabios@seabios.org, QEMU Developers Kevin O'Connor wrote: > On Tue, Jun 01, 2010 at 10:26:12PM +0200, Sebastian Herbszt wrote: >> Jes Sorensen wrote: >> >Handle 0x0401, DMI type 4, 32 bytes >> >Processor Information >> >- Socket Designation: CPU 1 >> >+ Socket Designation: CPU01 >> >> smbios.c got >> snprintf((char*)start, 6, "CPU%2x", cpu_number); >> >> It should print "CPU 1" instead of "CPU01" because the >> padding should be done with spaces not zeros. Maybe >> bvprintf() doesn't handle it correctly? > > Space padding hasn't been implemented - nothing needed it. With correct space padding this would be a non issue, because the socket designation string would not have changed. Sebastian > The bvprintf code is called from 16bit code which is very stack > sensitive - if space padding is implemented it will have to be tested > carefully. > > -Kevin