提交 06631810 编写于 作者: J Jan Kiszka 提交者: Avi Kivity

memory: Do not print empty PIO root

Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 4b474ba7
...@@ -1360,7 +1360,10 @@ void mtree_info(fprintf_function mon_printf, void *f) ...@@ -1360,7 +1360,10 @@ void mtree_info(fprintf_function mon_printf, void *f)
g_free(ml2); g_free(ml2);
} }
QTAILQ_INIT(&ml_head); if (address_space_io.root &&
mon_printf(f, "I/O\n"); !QTAILQ_EMPTY(&address_space_io.root->subregions)) {
mtree_print_mr(mon_printf, f, address_space_io.root, 0, 0, &ml_head); QTAILQ_INIT(&ml_head);
mon_printf(f, "I/O\n");
mtree_print_mr(mon_printf, f, address_space_io.root, 0, 0, &ml_head);
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册