[PATCH 2/5] virCPUDefParseXML: Prefer virXMLPropUInt over virXPathUInt

Peter Krempa pkrempa at redhat.com
Thu Sep 30 11:26:40 UTC 2021


On Tue, Sep 21, 2021 at 16:50:28 +0200, Michal Privoznik wrote:
> When parsing CPU topology, which is described in <topology/>
> attributes we can use virXMLPropUInt() instead of virXPathUInt()
> as the former results in shorter code.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/conf/cpu_conf.c | 41 ++++++++++++++++++-----------------------
>  1 file changed, 18 insertions(+), 23 deletions(-)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>




More information about the libvir-list mailing list