Received: from [140.186.70.92] (port=58322 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJY35-0003JZ-4C for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:26:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJY32-00009e-BZ for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:26:53 -0400 Received: from mail.gmx.net ([213.165.64.20]:43396) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OJY31-00009G-PX for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:26:52 -0400 Message-ID: <915D11B7A1EA4FDC80761D20504E920B@FSCPC> From: "Sebastian Herbszt" References: <4BFFE03F.40606@redhat.com> In-Reply-To: <4BFFE03F.40606@redhat.com> Date: Tue, 1 Jun 2010 22:26:12 +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: Jes Sorensen , seabios@seabios.org Cc: QEMU Developers 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? Sebastian