monitor: expose monitor_puts to rest of code
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 29 Sep 2022 11:42:12 +0000 (12:42 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 6 Oct 2022 10:53:40 +0000 (11:53 +0100)
commitbf0c50d4aa851e78c91096f510303831a2aadaeb
treec9a32bf2cb27868452159bd243d0e28c57b247da
parent3cc70a9994bf0967c7a2bda539ed43926fb4c2cb
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>
block/monitor/block-hmp-cmds.c
docs/devel/writing-monitor-commands.rst
hw/misc/mos6522.c
include/monitor/monitor.h
monitor/hmp-cmds.c
monitor/hmp.c
monitor/monitor-internal.h
target/i386/helper.c