summaryrefslogtreecommitdiffstats
path: root/qemu-img.c
diff options
context:
space:
mode:
authorDaniel P. Berrange2016-04-06 11:16:18 +0200
committerKevin Wolf2016-04-12 18:06:51 +0200
commit143605a200f9d418d62d25d91b1477b1d91c0b18 (patch)
tree2f936bf280bcf8509b524fd8a2f81238f5045d3a /qemu-img.c
parentiotests: fix the broken 026.nocache output (diff)
downloadqemu-143605a200f9d418d62d25d91b1477b1d91c0b18.tar.gz
qemu-143605a200f9d418d62d25d91b1477b1d91c0b18.tar.xz
qemu-143605a200f9d418d62d25d91b1477b1d91c0b18.zip
qemu-img: fix formatting of error message
The error_reportf_err() will not automatically append a ': ' before adding its suffix, so we must include that in the message we pass it, otherwise we get a badly formatted message lacking whitespace: qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=6666,tls-creds=tls0'Failed to connect socket: Connection refused Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 06264d9128..17c5cfdffe 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -256,7 +256,7 @@ static BlockBackend *img_open_opts(const char *optstr,
options = qemu_opts_to_qdict(opts, NULL);
blk = blk_new_open(NULL, NULL, options, flags, &local_err);
if (!blk) {
- error_reportf_err(local_err, "Could not open '%s'", optstr);
+ error_reportf_err(local_err, "Could not open '%s': ", optstr);
return NULL;
}
blk_set_enable_write_cache(blk, !writethrough);