mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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
This commit is contained in:
parent
bd491d6a4e
commit
fef3074347
4 changed files with 39 additions and 3 deletions
9
block.c
9
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue