Re: [libvirt] [PATCH] virsysinfo: Use more virSkipSpacesBackwards()

2018-03-15 Thread Andrea Bolognani
On Tue, 2018-03-13 at 16:21 +0100, Michal Privoznik wrote: > Some fields reported by dmidecode have plenty of useless spaces > (in fact some have nothing but spaces). To deal with this we have > introduced virSkipSpacesBackwards() and use it in > virSysinfoParseX86Processor() and

Re: [libvirt] [PATCH] virsysinfo: Use more virSkipSpacesBackwards()

2018-03-15 Thread Michal Privoznik
On 03/14/2018 10:15 AM, Andrea Bolognani wrote: > On Tue, 2018-03-13 at 16:21 +0100, Michal Privoznik wrote: >> Some fields reported by dmidecode have plenty of useless spaces >> (in fact some have nothing but spaces). To deal with this we have >> introduced virSkipSpacesBackwards() and use it in

[libvirt] [PATCH] virsysinfo: Use more virSkipSpacesBackwards()

2018-03-13 Thread Michal Privoznik
Some fields reported by dmidecode have plenty of useless spaces (in fact some have nothing but spaces). To deal with this we have introduced virSkipSpacesBackwards() and use it in virSysinfoParseX86Processor() and virSysinfoParseX86Memory(). However, other functions (e.g.