diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-11-10 21:44:29 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-11-10 21:44:29 +0100 |
commit | 3850319be55d3e45df1af07323d283248cbbe88d (patch) | |
tree | a458e2a95c318d0486327979cfc18f6dc2bc4ec9 /src/login/sysfs-show.h | |
parent | ddbc931986bac931a07a1aeb507a1a30153ac7ed (diff) | |
download | systemd-3850319be55d3e45df1af07323d283248cbbe88d.tar.gz |
loginctl: rework sysfs tree dump, to honour --full and friends
Let's hook up the sysfs tree output with the output flags logic,
already used when dumping log lines or process trees. This way we get
very similar output handling for line breaking/ellipsation in all three
outputs of structured data.
Fixes: #7095
Diffstat (limited to 'src/login/sysfs-show.h')
-rw-r--r-- | src/login/sysfs-show.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/login/sysfs-show.h b/src/login/sysfs-show.h index 3e94bc3ed5..e19af4cd92 100644 --- a/src/login/sysfs-show.h +++ b/src/login/sysfs-show.h @@ -19,4 +19,8 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -int show_sysfs(const char *seat, const char *prefix, unsigned columns); +#include <sys/types.h> + +#include "output-mode.h" + +int show_sysfs(const char *seat, const char *prefix, unsigned columns, OutputFlags flags); |