aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-22 14:11:32 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-22 14:11:32 +0000
commitfef3074347c02ed0c2fd9d1918402c966b909466 (patch)
tree1ca2beb79f94e3cc852dde85e49a4d5e49d7b430 /block.c
parentbd491d6a4ecc57144ffa55c0daf97b43bc1648ce (diff)
downloadqemu-fef3074347c02ed0c2fd9d1918402c966b909466.zip
qemu-fef3074347c02ed0c2fd9d1918402c966b909466.tar.gz
qemu-fef3074347c02ed0c2fd9d1918402c966b909466.tar.bz2
Escape filname printout properly, by Anthony Liguori and Julian Seward.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2263 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r--block.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/block.c b/block.c
index fdaba4b..9aebaa0 100644
--- a/block.c
+++ b/block.c
@@ -868,9 +868,12 @@ void bdrv_info(void)
term_printf(" locked=%d", bs->locked);
}
if (bs->drv) {
- term_printf(" file=%s", bs->filename);
- if (bs->backing_file[0] != '\0')
- term_printf(" backing_file=%s", bs->backing_file);
+ term_printf(" file=");
+ term_print_filename(bs->filename);
+ if (bs->backing_file[0] != '\0') {
+ term_printf(" backing_file=");
+ term_print_filename(bs->backing_file);
+ }
term_printf(" ro=%d", bs->read_only);
term_printf(" drv=%s", bs->drv->format_name);
if (bs->encrypted)