From 903a881481745584b538591ea4db92bca7156956 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Tue, 13 Dec 2011 17:18:30 -0200 Subject: qerror: Extend QERR_DEVICE_ENCRYPTED Include the name of the encrypted file. Signed-off-by: Luiz Capitulino --- monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index bd4bc4f..f85a9d2 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; } -- cgit v1.1