diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2025-02-07 15:31:00 +0000 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2025-02-10 13:47:58 +0000 |
| commit | 31ef3c333db3b1293b65da0e8fe602ad5ebcd698 (patch) | |
| tree | 027fbd3031952d7ee40953c0d90a3a8cd0e6a30f /include/system/qtest.h | |
| parent | 1e00ebfd8012061c1186fbf368b4216ac6e299c4 (diff) | |
| download | focaccia-qemu-31ef3c333db3b1293b65da0e8fe602ad5ebcd698.tar.gz focaccia-qemu-31ef3c333db3b1293b65da0e8fe602ad5ebcd698.zip | |
tests/qtest: rename qtest_send_prefix and roll-up into qtest_send
qtest_send_prefix never actually sent something over the chardev, all it does is print the timestamp to the QTEST_LOG when enabled. So rename the function, make it static, remove the unused CharDev and simplify all the call sites by handling that directly with qtest_send (and qtest_log_send). Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250207153112.3939799-6-alex.bennee@linaro.org>
Diffstat (limited to 'include/system/qtest.h')
| -rw-r--r-- | include/system/qtest.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/system/qtest.h b/include/system/qtest.h index c161d75165..6ddddc501b 100644 --- a/include/system/qtest.h +++ b/include/system/qtest.h @@ -24,7 +24,6 @@ static inline bool qtest_enabled(void) } #ifndef CONFIG_USER_ONLY -void qtest_send_prefix(CharBackend *chr); void G_GNUC_PRINTF(2, 3) qtest_sendf(CharBackend *chr, const char *fmt, ...); void qtest_set_command_cb(bool (*pc_cb)(CharBackend *chr, gchar **words)); bool qtest_driver(void); |