diff mbox

memory: Don't dump disabled regions

Message ID 5090F40E.3030409@siemens.com
State New
Headers show

Commit Message

Jan Kiszka Oct. 31, 2012, 9:49 a.m. UTC
This makes "info mtree" output readable again.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 memory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Blue Swirl Nov. 10, 2012, 7:29 p.m. UTC | #1
Thanks, applied.

On Wed, Oct 31, 2012 at 9:49 AM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> This makes "info mtree" output readable again.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  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;
>      }
>
> --
> 1.7.3.4
>
diff mbox

Patch

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;
     }