From: Peter Krempa Date: Tue, 14 Aug 2018 11:04:18 +0000 (+0200) Subject: qemu: monitor: Use qemuMonitorJSONBlockJobError in qemuMonitorJSONDrivePivot X-Git-Tag: v4.7.0-rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29dd778d16cc1b98892f8ad78702a3f4fe6c70c0;p=thirdparty%2Flibvirt.git qemu: monitor: Use qemuMonitorJSONBlockJobError in qemuMonitorJSONDrivePivot The API deals with a block job so use the common error reporting function for it. Signed-off-by: Peter Krempa Reviewed-by: John Ferlan --- diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 2af4881702..abcb60d3a1 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -4893,7 +4893,7 @@ qemuMonitorJSONDrivePivot(qemuMonitorPtr mon, if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0) goto cleanup; - if (qemuMonitorJSONCheckError(cmd, reply) < 0) + if (qemuMonitorJSONBlockJobError(cmd, reply, device) < 0) goto cleanup; ret = 0;