Received: from eggs.gnu.org ([208.118.235.92]:44115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTUv9-000812-OB for qemu-devel@nongnu.org; Wed, 31 Oct 2012 05:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTUv4-0005ud-Ur for qemu-devel@nongnu.org; Wed, 31 Oct 2012 05:49:11 -0400 Received: from david.siemens.de ([192.35.17.14]:16352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTUv4-0005uB-L9 for qemu-devel@nongnu.org; Wed, 31 Oct 2012 05:49:06 -0400 Message-ID: <5090F40E.3030409@siemens.com> Date: Wed, 31 Oct 2012 10:49:02 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] memory: Don't dump disabled regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity , qemu-devel This makes "info mtree" output readable again. Signed-off-by: Jan Kiszka --- 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