Skip to contentSkip to conversation

memory: Don't dump disabled regions

PATCH Applied Jan Kiszka 2 participants 2 messages Oct 31, 2012 – Nov 10, 2012

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 memory: Don't dump disabled regions

This makes "info mtree" output readable again.

---
 memory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
memory.c +1 -1
index 243cb23..d5150f8 100644
@@ -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;
     }
 
Signature · 1 line
1.7.3.4
Applied
#1 lore raw

Thanks, applied.

Quoted 23 lines · Jan Kiszka

This makes "info mtree" output readable again.

---
 memory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
memory.c +1 -2
index 243cb23..d5150f8 100644
@@ -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;
     }
 
--

1.7.3.4