aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-10-31 10:49:02 +0100
committerBlue Swirl <blauwirbel@gmail.com>2012-11-10 13:24:39 +0000
commit7ea692b24055022248b895f2203a6ab1ad54859b (patch)
tree81efbfca32bdacd6c47fb8b2450ecf4186c03454 /memory.c
parent22bde7145495ad78c4bed8bb76d9401ec8d107b2 (diff)
memory: Don't dump disabled regions
This makes "info mtree" output readable again. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory.c b/memory.c
index 09e44b84ab..741985385c 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;
}