[libvirt] [Resending] [PATCH 2/2] Allow x86 to fetch sysinfo from /proc/cpuinfo when dmidecode is absent.
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 &&
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...
Size: 620 bytes
Desc: OpenPGP digital signature
More information about the libvir-list