April 29, 2026
3:31 a.m.
On Wed Apr 29 02:48:22 2026 +0000, Twaik Yont wrote:
It is needed to trigger reading WINEDEBUG before triggering any logging. `LOG` macro has this part: `if (!(__wine_dbch_android.flags & (1 << __WINE_DBCL_INIT)) || __WINE_GET_DEBUGGING(_ ## level, &__wine_dbch_android))`, so this way we make sure it is being initialized at the earliest possible point of our code. You should be using __wine_dbg_get_channel_flags in the macro instead.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10710#note_138142