aboutsummaryrefslogtreecommitdiff
path: root/block/qapi.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2015-12-14 14:55:12 -0500
committerMax Reitz <mreitz@redhat.com>2015-12-18 14:36:17 +0100
commit548e1ff37982424f5c605c67471b691ab5c8d1b1 (patch)
treea5b6ad80cc8489f23739e674c3af0f233a4ef7e9 /block/qapi.c
parenta41aa71c15fc8e8289acebd3330257bee0b8e11c (diff)
block/qapi: do not redundantly print "actual path"
If it happens to match the backing path, that was the actual path. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 1450122916-4706-2-git-send-email-jsnow@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qapi.c')
-rw-r--r--block/qapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/qapi.c b/block/qapi.c
index c0e877e07e..563dd3185d 100644
--- a/block/qapi.c
+++ b/block/qapi.c
@@ -676,7 +676,9 @@ void bdrv_image_info_dump(fprintf_function func_fprintf, void *f,
if (info->has_backing_filename) {
func_fprintf(f, "backing file: %s", info->backing_filename);
- if (info->has_full_backing_filename) {
+ if (info->has_full_backing_filename &&
+ (strcmp(info->backing_filename,
+ info->full_backing_filename) != 0)) {
func_fprintf(f, " (actual path: %s)", info->full_backing_filename);
}
func_fprintf(f, "\n");