From: Daniel P. Berrangé Date: Fri, 18 May 2018 15:12:29 +0000 (+0100) Subject: qemu: clarify message about block peek format restriction X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=47a1ca6e2c358a7a3c6749b718dd6853ba81d34c;p=libvirt.git qemu: clarify message about block peek format restriction Include the actual disk format in the error message to help the user see what is wrong. Signed-off-by: Daniel P. Berrangé --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index e61af23870..3a328e5d46 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -11544,8 +11544,9 @@ qemuDomainBlockPeek(virDomainPtr dom, } if (disk->src->format != VIR_STORAGE_FILE_RAW) { - virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("peeking is supported only for RAW disks")); + virReportError(VIR_ERR_OPERATION_UNSUPPORTED, + _("peeking is only supported for disk with 'raw' format not '%s'"), + virStorageFileFormatTypeToString(disk->src->format)); goto cleanup; }