mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
Replace Monitor API by HumanReadableText one. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Message-Id: <20240610062105.49848-2-philmd@linaro.org>
This commit is contained in:
parent
a276ec8e26
commit
dafec001d6
3 changed files with 18 additions and 13 deletions
|
@ -38,6 +38,7 @@
|
|||
#include "hw/loader.h"
|
||||
#include "hw/nmi.h"
|
||||
#include "qapi/visitor.h"
|
||||
#include "qapi/type-helpers.h"
|
||||
#include "monitor/monitor.h"
|
||||
#include "hw/intc/intc.h"
|
||||
#include "hw/ipmi/ipmi.h"
|
||||
|
@ -774,8 +775,13 @@ static void pnv_chip_power8_pic_print_info(PnvChip *chip, Monitor *mon)
|
|||
for (i = 0; i < chip8->num_phbs; i++) {
|
||||
PnvPHB *phb = chip8->phbs[i];
|
||||
PnvPHB3 *phb3 = PNV_PHB3(phb->backend);
|
||||
g_autoptr(GString) buf = g_string_new("");
|
||||
g_autoptr(HumanReadableText) info = NULL;
|
||||
|
||||
pnv_phb3_msi_pic_print_info(&phb3->msis, buf);
|
||||
info = human_readable_text_from_str(buf);
|
||||
monitor_puts(mon, info->human_readable_text);
|
||||
|
||||
pnv_phb3_msi_pic_print_info(&phb3->msis, mon);
|
||||
ics_pic_print_info(&phb3->lsis, mon);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue