]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
proc_fuse: improve error message
authorChristian Brauner (Microsoft) <christian.brauner@ubuntu.com>
Mon, 7 Mar 2022 14:23:24 +0000 (15:23 +0100)
committerChristian Brauner (Microsoft) <christian.brauner@ubuntu.com>
Mon, 7 Mar 2022 14:23:24 +0000 (15:23 +0100)
Fixes: #516
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
src/proc_fuse.c

index 4e7878005594c4c6a623dbc355772d6e282b8a00..11f4d9b0762921b7183f20f1489eeff673fc64a7 100644 (file)
@@ -204,7 +204,8 @@ static uint64_t get_memlimit(const char *cgroup, bool swap)
        else
                ret = cgroup_ops->get_memory_max(cgroup_ops, cgroup, &memlimit_str);
        if (ret > 0 && memlimit_str[0] && safe_uint64(memlimit_str, &memlimit, 10) < 0)
-               lxcfs_error("Failed to convert memlimit %s", memlimit_str);
+               lxcfs_error("Failed to convert memory%s.max=%s for cgroup %s",
+                           swap ? ".swap" : "", memlimit_str, cgroup);
 
        return memlimit;
 }