]> git.proxmox.com Git - mirror_lxc.git/commitdiff
conf: use SYSERROR on lxc_write_to_file errors
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Jan 2019 11:05:49 +0000 (12:05 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Jan 2019 11:06:31 +0000 (12:06 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/conf.c

index 3d0e4a192656255d387a8f2f61f0267e1091df7a..0d86d66e55da8a7d0b9aa13fe412f624f42e4425 100644 (file)
@@ -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;
                }
        }