From 7ea692b24055022248b895f2203a6ab1ad54859b Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 31 Oct 2012 10:49:02 +0100 Subject: [PATCH] memory: Don't dump disabled regions This makes "info mtree" output readable again. Signed-off-by: Jan Kiszka Signed-off-by: Blue Swirl --- memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory.c b/memory.c index 09e44b8..7419853 100644 --- a/memory.c +++ b/memory.c @@ -1601,7 +1601,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; } -- 2.7.4