]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: do not print hint about -M if -M is already used 21229/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Nov 2021 09:41:47 +0000 (10:41 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Nov 2021 10:00:54 +0000 (11:00 +0100)
commit10a7340a97f383e72a0a58e06bfbd673f347f095
treee3a0363d0318d12ef727935a3fcc5b6023d9f53f
parentfb293b3c0f2f0e24d088a6ccaf3bd051301754af
tree-wide: do not print hint about -M if -M is already used

(Or when -H is used, since -H and -M are incompatible.)

Note that the slightly unusual form with separate boolean variables (hint_vars,
hint_addr) instead of e.g. a const char* variable to hold the message, because this
way we don't trigger the warning about non-literal format.
17 files changed:
src/analyze/analyze.c
src/busctl/busctl.c
src/cgls/cgls.c
src/home/homectl.c
src/hostname/hostnamectl.c
src/locale/localectl.c
src/login/inhibit.c
src/login/loginctl.c
src/machine/machinectl.c
src/mount/mount-tool.c
src/portable/portablectl.c
src/run/run.c
src/shared/bus-util.c
src/shared/bus-util.h
src/shared/cgroup-show.c
src/systemctl/systemctl-util.c
src/timedate/timedatectl.c