On Thu, Mar 15, 2012 at 04:17:20PM +0530, Prerna wrote:
From: Prerna Saxena <prerna(a)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.
Until now, libvirt on x86 flags an error message if dmidecode is not
found. With this patch, the following is a sample output on x86 when
dmidecode is absent:
[...]
+ if(!physical_id) {
+ physical_id = tmp_physical_id;
+ }
+ else if (!strncmp(physical_id, tmp_physical_id, physical_id_len)) {
+ base = cur;
+ continue;
+ }
BTW this strncmp shold be replace by the following patch,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/