]> git.ipfire.org Git - thirdparty/systemd.git/commit
pid1: rename manager_get_show_status() to manager_should_show_status()
authorFranck Bui <fbui@suse.com>
Tue, 26 May 2020 08:20:44 +0000 (10:20 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 9 Jun 2020 07:16:54 +0000 (09:16 +0200)
commit0d6d3cf0558f9743e7a2c88db8853becb47e7f5b
treea9df88ead535036f90639753c02ea0e41e33151f
parentb309078ab9685bd549f2614bf99190b5955d21a7
pid1: rename manager_get_show_status() to manager_should_show_status()

The name 'manager_get_show_status()' suggests that the function simply reads
the property 'show_status' of the manager and hence returns a 'StatusType'
value.

However it was doing more than that since it contained the logic (based on
'show_status' but also on the state of the manager) to figure out if status
message could be emitted to the console.

Hence this patch renames the function to 'manager_should_show_status()'. The
previous name will be reused in a later patch to effectively return the value
of 'show_status' property.

No functional change.
src/core/manager.c