From efb13bb9ea97057f6659c178feb5512118304552 Mon Sep 17 00:00:00 2001 From: klemek Date: Sat, 16 May 2026 18:45:18 +0200 Subject: [PATCH] fix: auto random debug string bad practice --- src/state.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/state.c b/src/state.c index f363d54..9d33b52 100644 --- a/src/state.c +++ b/src/state.c @@ -581,10 +581,9 @@ static bool compute_event(Context *context, StateConfig state_config, if (code == state_config.key_autorand) { if (value > 0) { - log_info((context->auto_random ? "[%d] Auto Random OFF" - : "[%d] Auto Random ON"), - code); context->auto_random = !context->auto_random; + log_info("[%d] Auto Random %s", code, + context->auto_random ? "ON" : "OFF"); } return true; }