From: Serge Hallyn Date: Tue, 8 Mar 2016 17:02:52 +0000 (-0800) Subject: cgfsng: enter/escape error msgs: differentiate and add errno X-Git-Tag: lxc-2.0.0.rc8~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F881%2Fhead;p=thirdparty%2Flxc.git cgfsng: enter/escape error msgs: differentiate and add errno Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/cgfsng.c b/src/lxc/cgfsng.c index 0622a8186..4b2d9877b 100644 --- a/src/lxc/cgfsng.c +++ b/src/lxc/cgfsng.c @@ -672,7 +672,7 @@ static bool parse_hierarchies(struct cgfsng_handler_data *d) return false; if ((f = fopen("/proc/self/mountinfo", "r")) == NULL) { - ERROR("Failed opening /proc/self/mountinfo"); + SYSERROR("Failed opening /proc/self/mountinfo"); return false; } @@ -1009,7 +1009,7 @@ static bool cgfsng_enter(void *hdata, pid_t pid) char *fullpath = must_make_path(d->hierarchies[i]->fullcgpath, "cgroup.procs", NULL); if (lxc_write_to_file(fullpath, pidstr, len, false) != 0) { - ERROR("Failed to enter %s", fullpath); + SYSERROR("Failed to enter %s", fullpath); free(fullpath); return false; } @@ -1178,7 +1178,7 @@ static bool cgfsng_escape(void *hdata) d->hierarchies[i]->base_cgroup, "cgroup.procs", NULL); if (lxc_write_to_file(fullpath, "0", 2, false) != 0) { - ERROR("Failed to enter %s", fullpath); + SYSERROR("Failed to escape to %s", fullpath); free(fullpath); return false; }