chiark / gitweb /
systemctl,loginctl,cgls: do not ellipsize cgroup members when --full is specified
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 14 Jan 2013 17:16:50 +0000 (18:16 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Jan 2013 17:11:47 +0000 (12:11 -0500)
commit9bdbc2e2ec523dbefe1c1c7e164b5544aff0b185
tree5a24260ea36f9984b1f03162fa4d418429d9f268
parent2e72983463fc0b95f5aac3528334848e8d1d0744
systemctl,loginctl,cgls: do not ellipsize cgroup members when --full is specified

New file output.h with output flags and modes.

--full parameter also for cgls and loginctl.

Include 'all' parameter in flags (show_cgroup_by_path, show_cgroup,
show_cgroup_and_extra, show_cgroup_and_extra_by_spec).

get_process_cmdline with max_length == 0 will not ellipsize output.

Replace LINE_MAX with 0 in some calls of get_process_cmdline.

[zj: Default to --full when under pager for clgs.
     Drop '-f' since it wasn't documented and didn't actually work.
     Reindent a bit.
]
15 files changed:
Makefile.am
man/loginctl.xml
man/systemctl.xml
man/systemd-cgls.xml
src/cgls/cgls.c
src/core/selinux-access.c
src/journal/coredump.c
src/journal/journald-server.c
src/login/loginctl.c
src/shared/cgroup-show.c
src/shared/cgroup-show.h
src/shared/logs-show.h
src/shared/output-mode.h [new file with mode: 0644]
src/shared/util.c
src/systemctl/systemctl.c