[libvirt] [PATCH] Fix up nodeinfo parsing code.

2010-03-09 Thread Chris Lalancette
As pointed out by eblake, I made a real hash of the nodeinfo code with commit aa2f6f96ddd7a57011c3d25586d588100651feb2. This patch cleans it up: 1) Do more work at compile time instead of runtime (minor) 2) Properly handle the hex digits that come from

Re: [libvirt] [PATCH] Fix up nodeinfo parsing code.

2010-03-09 Thread Eric Blake
On 03/09/2010 12:30 PM, Chris Lalancette wrote: 1) Do more work at compile time instead of runtime (minor) 2) Properly handle the hex digits that come from /sys/devices/system/cpu/cpu*/topology/thread_siblings 3) Fix up some error paths that could cause SEGV 4) Used unsigned's for the cpu