summaryrefslogtreecommitdiffstats
path: root/src/basic/cgroup-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-10-10 20:55:20 +0200
committerGitHub <noreply@github.com>2017-10-10 20:55:20 +0200
commit651d47d14b987883c604468e87e0e1871554d213 (patch)
tree17e0abc907985fe44a6c4a3a9acde25fdc36646d /src/basic/cgroup-util.c
parentMerge pull request #7003 from yuwata/enable-dynamic-user (diff)
downloadsystemd-651d47d14b987883c604468e87e0e1871554d213.tar.xz
systemd-651d47d14b987883c604468e87e0e1871554d213.zip
tests: skip tests when cg_pid_get_path fails (#7033)
v2: - cast the fstype_t type to ull, because it varies between arches. Making it long long should be on the safe side.
Diffstat (limited to 'src/basic/cgroup-util.c')
-rw-r--r--src/basic/cgroup-util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index d51c3efd22..f5fed2a927 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -2456,8 +2456,11 @@ static int cg_unified_update(void) {
return -ENOMEDIUM;
unified_cache = CGROUP_UNIFIED_NONE;
}
- } else
+ } else {
+ log_debug("Unknown filesystem type %llx mounted on /sys/fs/cgroup.",
+ (unsigned long long) fs.f_type);
return -ENOMEDIUM;
+ }
return 0;
}