HomeClusterLabs Projects

Log: scheduler: show flag name in more trace messages

Description

Log: scheduler: show flag name in more trace messages

pe_action_set_flag_reason() could previously take either a pe_action_t*
argument or a const char *text argument.

Now, replace the text argument calls with direct calls to
pe_clear_action_flags() and pe_action_set_reason(), which makes the intent more
obvious and shows the flag name in the trace message.

This also allows us to simplify pe_action_set_flag_reason() further.

Details

Provenance
kgaillotAuthored on Jul 23 2021, 6:12 PM
Parents
rPc4f3c86c5cc9: Refactor: scheduler: functionize creating action reason string from action
Branches
Unknown
Tags
Unknown

Event Timeline