From: Richard Henderson Date: Tue, 28 Jun 2022 11:16:59 +0000 (+0530) Subject: semihosting: Remove qemu_semihosting_log_out X-Git-Tag: v7.1.0-rc0~23^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=938fcd741ad656b2c4aeb1654bfc4ff221c26bbf;p=thirdparty%2Fqemu.git semihosting: Remove qemu_semihosting_log_out The function is no longer used. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20220628111701.677216-7-richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/include/semihosting/console.h b/include/semihosting/console.h index 61b0cb3a946..bd78e5f03fc 100644 --- a/include/semihosting/console.h +++ b/include/semihosting/console.h @@ -40,19 +40,6 @@ int qemu_semihosting_console_read(CPUState *cs, void *buf, int len); */ int qemu_semihosting_console_write(void *buf, int len); -/** - * qemu_semihosting_log_out: - * @s: pointer to string - * @len: length of string - * - * Send a string to the debug output. Unlike console_out these strings - * can't be sent to a remote gdb instance as they don't exist in guest - * memory. - * - * Returns: number of bytes written - */ -int qemu_semihosting_log_out(const char *s, int len); - /* * qemu_semihosting_console_block_until_ready: * @cs: CPUState diff --git a/semihosting/console.c b/semihosting/console.c index cda7cf19051..5b1ec0a1c39 100644 --- a/semihosting/console.c +++ b/semihosting/console.c @@ -38,15 +38,6 @@ typedef struct SemihostingConsole { static SemihostingConsole console; -int qemu_semihosting_log_out(const char *s, int len) -{ - if (console.chr) { - return qemu_chr_write_all(console.chr, (uint8_t *) s, len); - } else { - return write(STDERR_FILENO, s, len); - } -} - #define FIFO_SIZE 1024 static int console_can_read(void *opaque)