On 4/14/22 07:56, Alex Bennée wrote:
#ifdef CONFIG_TRACE_LOG
-qemu_loglevel |= LOG_TRACE;
+log_flags |= LOG_TRACE;
#endif
+qemu_loglevel = log_flags;
+
This looked weird - so should we consider a qatomic_set here to avoid an
inconsistent set of flags being read non-atomically el
Richard Henderson writes:
> Provide a function to set both filename and flags at
> the same time. This is the common case at startup.
>
> Signed-off-by: Richard Henderson
> ---
> v2: Return bool, per recommendations in qapi/error.h (phil).
> ---
> include/qemu/log.h | 1 +
> util/log.c
Provide a function to set both filename and flags at
the same time. This is the common case at startup.
Signed-off-by: Richard Henderson
---
v2: Return bool, per recommendations in qapi/error.h (phil).
---
include/qemu/log.h | 1 +
util/log.c | 122