diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-13 17:23:58 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-17 10:22:28 +0100 |
commit | 7026a775e656bb9cd982fd450e3d9c60d62a0bdf (patch) | |
tree | 39e9472b1d83142ea08437cc7213d85c752b5de6 /src/tmpfiles/tmpfiles.c | |
parent | 3401419bb8215612cf8db33d930a64a54b19dcb3 (diff) |
machinectl: tweak address output in "machinectl status"
With this change we'll not show an "Addresses" field for machines that
we don't know any addresses for.
This changes print_addresses() to never suffix its output with a
newline, leaving that to the caller. That's a good idea since depending
on who the caller is, different rules apply: if no addresses are found,
then the list view still wants a newline, but the status view does not.
This also changes the function to return the number of found addresses,
which can be used to decide when to add a newline or not.
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
0 files changed, 0 insertions, 0 deletions