[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 06/15] monitor: expose monitor_puts to rest of code
From: |
Alex Bennée |
Subject: |
[PATCH v1 06/15] monitor: expose monitor_puts to rest of code |
Date: |
Fri, 8 Apr 2022 17:47:33 +0100 |
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);
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
include/monitor/monitor.h | 1 +
monitor/monitor-internal.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h
index cc4cc6c6ad..8e291a2588 100644
--- a/include/monitor/monitor.h
+++ b/include/monitor/monitor.h
@@ -31,6 +31,7 @@ void monitor_resume(Monitor *mon);
int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp);
int monitor_fd_param(Monitor *mon, const char *fdname, Error **errp);
+int monitor_puts(Monitor *mon, const char *str);
int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
G_GNUC_PRINTF(2, 0);
int monitor_printf(Monitor *mon, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
diff --git a/monitor/monitor-internal.h b/monitor/monitor-internal.h
index caa2e90ef2..a2cdbbf646 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);
--
2.30.2
- [PATCH v1 00/15] testing, docs, tracepoints and cputlb hacks, Alex Bennée, 2022/04/08
- [PATCH v1 02/15] docs/devel: add some notes on the binfmt-image-debian targets, Alex Bennée, 2022/04/08
- [PATCH v1 04/15] accel/tcg: move trace events to correct location, Alex Bennée, 2022/04/08
- [PATCH v1 09/15] cputlb: add tracepoints for the protect/unprotect helpers, Alex Bennée, 2022/04/08
- [PATCH v1 07/15] disas: generalise plugin_printf and use for monitor_disas, Alex Bennée, 2022/04/08
- [PATCH v1 01/15] tests/avocado: update aarch64_virt test to exercise -cpu max, Alex Bennée, 2022/04/08
- [PATCH v1 03/15] docs/devel: drop :hidden: and :includehidden: tags, Alex Bennée, 2022/04/08
- [PATCH v1 06/15] monitor: expose monitor_puts to rest of code,
Alex Bennée <=
- [PATCH v1 05/15] accel/tcg: add tb_invalidate_phy_pages_fast tracepoint, Alex Bennée, 2022/04/08
- [PATCH v1 12/15] tests/tcg: add memory-sve test for aarch64, Alex Bennée, 2022/04/08
- [PATCH v1 08/15] disas: use result of ->read_memory_func, Alex Bennée, 2022/04/08
- [PATCH v1 10/15] cputlb: add tracepoints for TB invalidation, Alex Bennée, 2022/04/08
- [PATCH v1 13/15] plugins: extend execlog to filter matches, Alex Bennée, 2022/04/08