memory: Do not print empty PIO root
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
		
							parent
							
								
									4b474ba7a1
								
							
						
					
					
						commit
						066318109f
					
				
							
								
								
									
										9
									
								
								memory.c
								
								
								
								
							
							
						
						
									
										9
									
								
								memory.c
								
								
								
								
							| 
						 | 
					@ -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);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue