| Submitter | Jan Kiszka |
|---|---|
| Date | Oct. 31, 2012, 9:49 a.m. |
| Message ID | <5090F40E.3030409@siemens.com> |
| Download | mbox | patch |
| Permalink | /patch/195804/ |
| State | New |
| Headers | show |
Comments
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 >
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; }
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(-)