summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-12-13 17:18:30 -0200
committerLuiz Capitulino <lcapitulino@redhat.com>2012-01-18 10:23:39 -0200
commit903a881481745584b538591ea4db92bca7156956 (patch)
tree3783956130fc561836015076ee28a37ef9bff3eb /monitor.c
parent270b243f91cdae380eb02396e57452c15dbcef86 (diff)
downloadqemu-903a881481745584b538591ea4db92bca7156956.tar.gz
qemu-903a881481745584b538591ea4db92bca7156956.tar.bz2
qemu-903a881481745584b538591ea4db92bca7156956.zip
qerror: Extend QERR_DEVICE_ENCRYPTED
Include the name of the encrypted file. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index bd4bc4f5b0..f85a9d2499 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4682,7 +4682,8 @@ int monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
}
if (monitor_ctrl_mode(mon)) {
- qerror_report(QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(bs));
+ qerror_report(QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(bs),
+ bdrv_get_encrypted_filename(bs));
return -1;
}