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; }