From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqhiN-0003Np-9p for qemu-devel@nongnu.org; Fri, 08 May 2015 08:49:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqhiM-0002BG-HP for qemu-devel@nongnu.org; Fri, 08 May 2015 08:49:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqhiM-0002B9-AN for qemu-devel@nongnu.org; Fri, 08 May 2015 08:49:14 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t48CnDsR015817 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 8 May 2015 08:49:13 -0400 From: Paolo Bonzini Date: Fri, 8 May 2015 14:48:58 +0200 Message-Id: <1431089344-20350-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1431089344-20350-1-git-send-email-pbonzini@redhat.com> References: <1431089344-20350-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 3/9] mtree: tag & indent a bit better List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann Signed-off-by: Paolo Bonzini --- memory.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/memory.c b/memory.c index 0f6cb81..8fe6d79 100644 --- a/memory.c +++ b/memory.c @@ -2185,15 +2185,16 @@ void mtree_info(fprintf_function mon_printf, void *f) QTAILQ_INIT(&ml_head); QTAILQ_FOREACH(as, &address_spaces, address_spaces_link) { - mon_printf(f, "%s\n", as->name); - mtree_print_mr(mon_printf, f, as->root, 0, 0, &ml_head); + mon_printf(f, "address-space: %s\n", as->name); + mtree_print_mr(mon_printf, f, as->root, 1, 0, &ml_head); + mon_printf(f, "\n"); } - mon_printf(f, "aliases\n"); /* print aliased regions */ QTAILQ_FOREACH(ml, &ml_head, queue) { - mon_printf(f, "%s\n", memory_region_name(ml->mr)); - mtree_print_mr(mon_printf, f, ml->mr, 0, 0, &ml_head); + mon_printf(f, "memory-region: %s\n", memory_region_name(ml->mr)); + mtree_print_mr(mon_printf, f, ml->mr, 1, 0, &ml_head); + mon_printf(f, "\n"); } QTAILQ_FOREACH_SAFE(ml, &ml_head, queue, ml2) { -- 2.3.5