summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2013-12-17 19:42:03 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-18 23:58:24 -0500
commit495cb9bbeb0bf2959f12e69253465a6aa03e7aef (patch)
tree4aaf43271ee38295ee3c9ccaecf1d910dbf35a99 /src/systemctl
parent97aa7b478177f200d250dc0186f49e52b5f6e3c8 (diff)
loginctl: improve print_{session|user|seat}_status_info() functions
1) Instead of checking if we need to print a new line on each iteration, pass the "new_line" as a pointer to those functions, so they can use it to check if a new line is needed. This makes the code more consistent as it is done in other places: machinectl, systemctl... 2) Move the error messages from show_{session|user|seat}() to their appropriate print_{session|user|seat}_status_info() functions, this will prevent from logging an error message twice in case show_properties() fails and it will improve code readability. 3) Also do not ignore error codes on these functions.
Diffstat (limited to 'src/systemctl')
0 files changed, 0 insertions, 0 deletions