mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
util/log: Remove qemu_log_vprintf
This function is no longer used. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-11-richard.henderson@linaro.org>
This commit is contained in:
parent
78b548583e
commit
3fb659605f
1 changed files with 0 additions and 15 deletions
|
@ -72,21 +72,6 @@ void qemu_log_unlock(FILE *fd);
|
||||||
|
|
||||||
/* Logging functions: */
|
/* Logging functions: */
|
||||||
|
|
||||||
/* vfprintf-like logging function
|
|
||||||
*/
|
|
||||||
static inline void G_GNUC_PRINTF(1, 0)
|
|
||||||
qemu_log_vprintf(const char *fmt, va_list va)
|
|
||||||
{
|
|
||||||
QemuLogFile *logfile;
|
|
||||||
|
|
||||||
rcu_read_lock();
|
|
||||||
logfile = qatomic_rcu_read(&qemu_logfile);
|
|
||||||
if (logfile) {
|
|
||||||
vfprintf(logfile->fd, fmt, va);
|
|
||||||
}
|
|
||||||
rcu_read_unlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* log only if a bit is set on the current loglevel mask:
|
/* log only if a bit is set on the current loglevel mask:
|
||||||
* @mask: bit to check in the mask
|
* @mask: bit to check in the mask
|
||||||
* @fmt: printf-style format string
|
* @fmt: printf-style format string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue