From: Wolfgang Bumiller Date: Fri, 4 Jan 2019 11:05:49 +0000 (+0100) Subject: conf: use SYSERROR on lxc_write_to_file errors X-Git-Tag: lxc-3.2.0~202^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=688e8982bced7f7bbfdc8a646a852890544917a4;p=thirdparty%2Flxc.git conf: use SYSERROR on lxc_write_to_file errors Signed-off-by: Wolfgang Bumiller --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 3d0e4a192..0d86d66e5 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2681,8 +2681,8 @@ int setup_sysctl_parameters(struct lxc_list *sysctls) ret = lxc_write_to_file(filename, elem->value, strlen(elem->value), false, 0666); if (ret < 0) { - ERROR("Failed to setup sysctl parameters %s to %s", - elem->key, elem->value); + SYSERROR("Failed to setup sysctl parameters %s to %s", + elem->key, elem->value); return -1; } } @@ -2716,8 +2716,8 @@ int setup_proc_filesystem(struct lxc_list *procs, pid_t pid) ret = lxc_write_to_file(filename, elem->value, strlen(elem->value), false, 0666); if (ret < 0) { - ERROR("Failed to setup proc filesystem %s to %s", - elem->filename, elem->value); + SYSERROR("Failed to setup proc filesystem %s to %s", + elem->filename, elem->value); return -1; } }