From patchwork Wed Oct 31 09:49:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: memory: Don't dump disabled regions Date: Tue, 30 Oct 2012 23:49:02 -0000 From: Jan Kiszka X-Patchwork-Id: 195804 Message-Id: <5090F40E.3030409@siemens.com> To: Avi Kivity , qemu-devel This makes "info mtree" output readable again. Signed-off-by: Jan Kiszka --- memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/memory.c b/memory.c index 243cb23..d5150f8 100644 --- a/memory.c +++ b/memory.c @@ -1590,7 +1590,7 @@ static void mtree_print_mr(fprintf_function mon_printf, void *f, const MemoryRegion *submr; unsigned int i; - if (!mr) { + if (!mr || !mr->enabled) { return; }