diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-09 02:28:36 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-09 02:34:38 +0900 |
commit | 8ed6f81ba3b7be55d20a5d703c9aa7d4018b80ed (patch) | |
tree | 21664e88bede9053c8097371588e1dc56b89106e /src/core/bpf-firewall.c | |
parent | 93c5b904597ee86cbf65d8b5dc9d68428f2a2130 (diff) | |
download | systemd-8ed6f81ba3b7be55d20a5d703c9aa7d4018b80ed.tar.gz |
core: make log_unit_error() or friends return void
Diffstat (limited to 'src/core/bpf-firewall.c')
-rw-r--r-- | src/core/bpf-firewall.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/bpf-firewall.c b/src/core/bpf-firewall.c index 5671d0c195..5da0106a33 100644 --- a/src/core/bpf-firewall.c +++ b/src/core/bpf-firewall.c @@ -899,11 +899,11 @@ void emit_bpf_firewall_warning(Unit *u) { if (!warned) { bool quiet = bpf_firewall_unsupported_reason == -EPERM && detect_container(); - log_unit_full(u, quiet ? LOG_DEBUG : LOG_WARNING, bpf_firewall_unsupported_reason, - "unit configures an IP firewall, but %s.\n" - "(This warning is only shown for the first unit using IP firewalling.)", - getuid() != 0 ? "not running as root" : - "the local system does not support BPF/cgroup firewalling"); + log_unit_full_errno(u, quiet ? LOG_DEBUG : LOG_WARNING, bpf_firewall_unsupported_reason, + "unit configures an IP firewall, but %s.\n" + "(This warning is only shown for the first unit using IP firewalling.)", + getuid() != 0 ? "not running as root" : + "the local system does not support BPF/cgroup firewalling"); warned = true; } } |