mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -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
|
@ -12,7 +12,6 @@
|
|||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "monitor/monitor.h"
|
||||
#include "qemu/log.h"
|
||||
#include "trace.h"
|
||||
#include "hw/intc/intc.h"
|
||||
|
@ -39,11 +38,12 @@ static bool goldfish_pic_get_statistics(InterruptStatsProvider *obj,
|
|||
return true;
|
||||
}
|
||||
|
||||
static void goldfish_pic_print_info(InterruptStatsProvider *obj, Monitor *mon)
|
||||
static void goldfish_pic_print_info(InterruptStatsProvider *obj, GString *buf)
|
||||
{
|
||||
GoldfishPICState *s = GOLDFISH_PIC(obj);
|
||||
monitor_printf(mon, "goldfish-pic.%d: pending=0x%08x enabled=0x%08x\n",
|
||||
s->idx, s->pending, s->enabled);
|
||||
g_string_append_printf(buf,
|
||||
"goldfish-pic.%d: pending=0x%08x enabled=0x%08x\n",
|
||||
s->idx, s->pending, s->enabled);
|
||||
}
|
||||
|
||||
static void goldfish_pic_update(GoldfishPICState *s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue