diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2022-09-29 12:42:12 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2022-10-06 11:53:40 +0100 |
commit | bf0c50d4aa851e78c91096f510303831a2aadaeb (patch) | |
tree | c9a32bf2cb27868452159bd243d0e28c57b247da /monitor/monitor-internal.h | |
parent | 3cc70a9994bf0967c7a2bda539ed43926fb4c2cb (diff) | |
download | qemu-bf0c50d4aa851e78c91096f510303831a2aadaeb.zip qemu-bf0c50d4aa851e78c91096f510303831a2aadaeb.tar.gz qemu-bf0c50d4aa851e78c91096f510303831a2aadaeb.tar.bz2 |
monitor: expose monitor_puts to rest of code
This helps us construct strings elsewhere before echoing to the
monitor. It avoids having to jump through hoops like:
monitor_printf(mon, "%s", s->str);
It will be useful in following patches but for now convert all
existing plain "%s" printfs to use the _puts api.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220929114231.583801-33-alex.bennee@linaro.org>
Diffstat (limited to 'monitor/monitor-internal.h')
-rw-r--r-- | monitor/monitor-internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/monitor/monitor-internal.h b/monitor/monitor-internal.h index caa2e90..a2cdbbf 100644 --- a/monitor/monitor-internal.h +++ b/monitor/monitor-internal.h @@ -174,7 +174,6 @@ extern int mon_refcount; extern HMPCommand hmp_cmds[]; -int monitor_puts(Monitor *mon, const char *str); void monitor_data_init(Monitor *mon, bool is_qmp, bool skip_flush, bool use_io_thread); void monitor_data_destroy(Monitor *mon); |