summaryrefslogtreecommitdiff
path: root/src/core/bpf-lsm.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-06-01 17:49:27 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-06-02 07:53:14 +0200
commit2e09b2235a27df3ada3542a2402b6e1727fc2c6c (patch)
treee3c219c8122a64b760743d754942f88bf7b97c4e /src/core/bpf-lsm.c
parent14c811ff4a3025a3ba8b969f7228c05d31eb3796 (diff)
downloadsystemd-2e09b2235a27df3ada3542a2402b6e1727fc2c6c.tar.gz
various: add %m in messages
Sometimes we want to suppress strerror() message because the are providing something better. But in those cases, it seems it was just forgotten.
Diffstat (limited to 'src/core/bpf-lsm.c')
-rw-r--r--src/core/bpf-lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bpf-lsm.c b/src/core/bpf-lsm.c
index d3e92b98a6..46fc8c8d3b 100644
--- a/src/core/bpf-lsm.c
+++ b/src/core/bpf-lsm.c
@@ -83,7 +83,7 @@ static int prepare_restrict_fs_bpf(struct restrict_fs_bpf **ret_obj) {
r = restrict_fs_bpf__load(obj);
assert(r <= 0);
if (r < 0)
- return log_error_errno(r, "Failed to load BPF object");
+ return log_error_errno(r, "Failed to load BPF object: %m");
*ret_obj = TAKE_PTR(obj);