mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemuDomainObjPrivateXMLParseBlockjobData: Use virXMLPropUInt instead of virXPathULongHex
Use the function for the proper type. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5033e5efce
commit
08c5c48124
@ -2764,7 +2764,6 @@ qemuDomainObjPrivateXMLParseBlockjobData(virDomainObj *vm,
|
|||||||
int newstate = -1;
|
int newstate = -1;
|
||||||
bool invalidData = false;
|
bool invalidData = false;
|
||||||
xmlNodePtr tmp;
|
xmlNodePtr tmp;
|
||||||
unsigned long jobflags = 0;
|
|
||||||
|
|
||||||
ctxt->node = node;
|
ctxt->node = node;
|
||||||
|
|
||||||
@ -2804,7 +2803,8 @@ qemuDomainObjPrivateXMLParseBlockjobData(virDomainObj *vm,
|
|||||||
STRNEQ(mirror, "yes"))
|
STRNEQ(mirror, "yes"))
|
||||||
invalidData = true;
|
invalidData = true;
|
||||||
|
|
||||||
if (virXPathULongHex("string(./@jobflags)", ctxt, &jobflags) != 0)
|
if (virXMLPropUInt(ctxt->node, "jobflags", 16, VIR_XML_PROP_NONE,
|
||||||
|
&job->jobflags) != 1)
|
||||||
job->jobflagsmissing = true;
|
job->jobflagsmissing = true;
|
||||||
|
|
||||||
if (!disk && !invalidData) {
|
if (!disk && !invalidData) {
|
||||||
@ -2826,7 +2826,6 @@ qemuDomainObjPrivateXMLParseBlockjobData(virDomainObj *vm,
|
|||||||
|
|
||||||
job->state = state;
|
job->state = state;
|
||||||
job->newstate = newstate;
|
job->newstate = newstate;
|
||||||
job->jobflags = jobflags;
|
|
||||||
job->errmsg = virXPathString("string(./errmsg)", ctxt);
|
job->errmsg = virXPathString("string(./errmsg)", ctxt);
|
||||||
job->invalidData = invalidData;
|
job->invalidData = invalidData;
|
||||||
job->disk = disk;
|
job->disk = disk;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user