Patchwork [4/4] hmp: show the backing file depth

login
register
mail settings
Submitter Luiz Capitulino
Date Aug. 3, 2012, 4:42 p.m.
Message ID <1344012178-21084-5-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/175021/
State New
Headers show

Comments

Luiz Capitulino - Aug. 3, 2012, 4:42 p.m.
From: BenoƮt Canet <benoit.canet@gmail.com>

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 hmp.c | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/hmp.c b/hmp.c
index 6b72a64..25688ab 100644
--- a/hmp.c
+++ b/hmp.c
@@ -227,6 +227,8 @@  void hmp_info_block(Monitor *mon)
             if (info->value->inserted->has_backing_file) {
                 monitor_printf(mon, " backing_file=");
                 monitor_print_filename(mon, info->value->inserted->backing_file);
+                monitor_printf(mon, " backing_file_depth=%" PRId64,
+                    info->value->inserted->backing_file_depth);
             }
             monitor_printf(mon, " ro=%d drv=%s encrypted=%d",
                            info->value->inserted->ro,