On Fri, Sep 19, 2025 at 01:25:33PM +0200, Paolo Bonzini wrote:
> Bindgen makes the LOG_* constants unsigned, even if they are defined as
> (1 << 15):
> 
>    pub const LOG_TRACE: u32 = 32768;
> 
> Make them unsigned in C as well through the BIT() macro, and also change
> the type of the variable that they are used with.
> 
> Reviewed-by: Manos Pitsidianakis <[email protected]>
> Reviewed-by: Zhao Liu <[email protected]>
> Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
>  include/qemu/log-for-trace.h |  4 ++--
>  include/qemu/log.h           | 44 ++++++++++++++++++------------------
>  util/log.c                   |  2 +-
>  rust/util/src/log.rs         |  2 +-
>  4 files changed, 26 insertions(+), 26 deletions(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to