mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info()
Replace Monitor API by HumanReadableText one (see commit f2de406f29
"docs/devel: document expectations for QAPI data modelling for QMP"
for rationale).
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20240610063518.50680-2-philmd@linaro.org>
This commit is contained in:
parent
a58e653aa2
commit
b2580720d0
9 changed files with 57 additions and 68 deletions
|
@ -10,7 +10,6 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "cpu.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "monitor/monitor.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/nmi.h"
|
||||
#include "hw/intc/intc.h"
|
||||
|
@ -27,10 +26,10 @@ static bool m68k_irqc_get_statistics(InterruptStatsProvider *obj,
|
|||
return true;
|
||||
}
|
||||
|
||||
static void m68k_irqc_print_info(InterruptStatsProvider *obj, Monitor *mon)
|
||||
static void m68k_irqc_print_info(InterruptStatsProvider *obj, GString *buf)
|
||||
{
|
||||
M68KIRQCState *s = M68K_IRQC(obj);
|
||||
monitor_printf(mon, "m68k-irqc: ipr=0x%x\n", s->ipr);
|
||||
g_string_append_printf(buf, "m68k-irqc: ipr=0x%x\n", s->ipr);
|
||||
}
|
||||
|
||||
static void m68k_set_irq(void *opaque, int irq, int level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue