mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
util/log: Drop return value from qemu_log
The only user of this feature, tcg_dump_ops, has been converted to use fprintf directly. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-18-richard.henderson@linaro.org>
This commit is contained in:
parent
095e9855b7
commit
3c06a41746
2 changed files with 3 additions and 12 deletions
13
util/log.c
13
util/log.c
|
@ -59,26 +59,17 @@ void qemu_log_unlock(FILE *fd)
|
|||
}
|
||||
}
|
||||
|
||||
/* Return the number of characters emitted. */
|
||||
int qemu_log(const char *fmt, ...)
|
||||
void qemu_log(const char *fmt, ...)
|
||||
{
|
||||
FILE *f = qemu_log_trylock();
|
||||
int ret = 0;
|
||||
|
||||
if (f) {
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
ret = vfprintf(f, fmt, ap);
|
||||
vfprintf(f, fmt, ap);
|
||||
va_end(ap);
|
||||
qemu_log_unlock(f);
|
||||
|
||||
/* Don't pass back error results. */
|
||||
if (ret < 0) {
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void __attribute__((__constructor__)) qemu_logfile_init(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue