On 2026-10-13T16:33:33, Petr Hodina via B4 Relay
<[email protected]> wrote:
> cmd: button: factor out state printing from 'button list'
>
> Move the per-button state printing out of list_buttons() into
> show_button_status(). This prints on/off, <inactive> or Error N
> without a trailing newline. 'button list' output is unchanged.
>
> This is a preparation for a new subcommand.
>
> Signed-off-by: Petr Hodina <[email protected]>
>
>  cmd/button.c | 28 ++++++++++++++++++++--------
>  1 file changed, 20 insertions(+), 8 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to