Received: from [140.186.70.92] (port=41486 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJaz2-0005Mz-UP for qemu-devel@nongnu.org; Tue, 01 Jun 2010 19:34:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJaz1-0004og-SB for qemu-devel@nongnu.org; Tue, 01 Jun 2010 19:34:56 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:36979) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJaz1-0004oU-Oo for qemu-devel@nongnu.org; Tue, 01 Jun 2010 19:34:55 -0400 Received: by vws15 with SMTP id 15so1634652vws.4 for ; Tue, 01 Jun 2010 16:34:54 -0700 (PDT) Date: Tue, 1 Jun 2010 19:34:51 -0400 From: Kevin O'Connor Message-ID: <20100601233451.GA29184@morn.localdomain> References: <4BFFE03F.40606@redhat.com> <915D11B7A1EA4FDC80761D20504E920B@FSCPC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <915D11B7A1EA4FDC80761D20504E920B@FSCPC> Subject: [Qemu-devel] Re: [SeaBIOS] SMBIOS strings List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Herbszt Cc: seabios@seabios.org, QEMU Developers 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. 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