[libvirt] [Resending] [PATCH 2/2] Allow x86 to fetch sysinfo from /proc/cpuinfo when dmidecode is absent.

Eric Blake eblake at redhat.com
Tue Feb 28 23:32:33 UTC 2012


On 02/17/2012 12:30 AM, Prerna wrote:
> The last patch was mangled by my mailer, resending.
> 
> From: Prerna Saxena <prerna at linux.vnet.ibm.com>
> Date: Thu, 16 Feb 2012 15:33:43 +0530
> Subject: [PATCH 2/2] Sysinfo : Allow x86 to fetch sysinfo from /proc/cpuinfo
>  in the event 'dmidecode' is absent in the system.
> 

> +        processor = &ret->processor[ret->nprocessor - 1];
> +        if ((eol) &&
> +            ((processor->processor_socket_destination =
> +                               strndup(cur, eol - cur)) == NULL))

This is over-parenthesized; I would write it:

if (eol &&
    (processor->processor_socket_destination =
     strndup(cur, eol - cur)) == NULL)

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120228/4f8e9a6c/attachment-0001.sig>


More information about the libvir-list mailing list