qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [SeaBIOS] SMBIOS strings


From: Jes Sorensen
Subject: [Qemu-devel] Re: [SeaBIOS] SMBIOS strings
Date: Mon, 31 May 2010 09:32:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Lightning/1.0b2pre Thunderbird/3.0.4

On 05/28/10 17:44, Gleb Natapov wrote:
> On Fri, May 28, 2010 at 05:24:47PM +0200, Jes Sorensen wrote:
>> I guess the Socket Designation in particular might have been done for a
>> reason?
>>
> It was part of commit cf2affa6de. And was a result of moving to
> snprintf() instead of direct string manipulation. Before that
> string was created like that:
>     memcpy((char *)start, "CPU  " "\0" "" "\0" "", 7);
>        ((char *)start)[4] = cpu_number + '0';
> Which start to produce strange cpu numbers for cpus greater then 9. I
> doubt we want to go back to that ;)

Hi Gleb,

I see. Well I guess we could do something slightly more compatible by
printing along the lines:

printf("CPU:");
if (nr < 10)
    printf(" ");
snprintf()

Not sure if it is worth it, but it should be doable without reverting to
memcpy().

Thoughts?

Cheers,
Jes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]