diff mbox series

[PULL,for-7.1,09/36] util/log: Remove qemu_log_vprintf

Message ID 20220320171135.2704502-10-richard.henderson@linaro.org
State Superseded
Headers show
Series Logging cleanup and per-thread logfiles | expand

Commit Message

Richard Henderson March 20, 2022, 5:11 p.m. UTC
This function is no longer used.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 include/qemu/log.h | 15 ---------------
 1 file changed, 15 deletions(-)

Comments

Alex Bennée March 23, 2022, 1:32 p.m. UTC | #1
Richard Henderson <richard.henderson@linaro.org> writes:

> This function is no longer used.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

I don't know why but this patch failed to apply automatically.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Richard Henderson March 23, 2022, 4:36 p.m. UTC | #2
On 3/23/22 06:32, Alex Bennée wrote:
> 
> Richard Henderson <richard.henderson@linaro.org> writes:
> 
>> This function is no longer used.
>>
>> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> 
> I don't know why but this patch failed to apply automatically.

Yeah, I saw a conflict on rebase.


r~
diff mbox series

Patch

diff --git a/include/qemu/log.h b/include/qemu/log.h
index 10e284291c..6e45b31253 100644
--- a/include/qemu/log.h
+++ b/include/qemu/log.h
@@ -72,21 +72,6 @@  void qemu_log_unlock(FILE *fd);
 
 /* Logging functions: */
 
-/* vfprintf-like logging function
- */
-static inline void GCC_FMT_ATTR(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:
  * @mask: bit to check in the mask
  * @fmt: printf-style format string