]> git.proxmox.com Git - mirror_lxc.git/commitdiff
log: remove strerror() from SYSERROR call
author2xsec <dh48.jeong@samsung.com>
Tue, 26 Jun 2018 05:41:54 +0000 (14:41 +0900)
committer2xsec <dh48.jeong@samsung.com>
Tue, 26 Jun 2018 08:27:07 +0000 (17:27 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/cmd/lxc_monitord.c
src/lxc/lsm/lsm.c
src/lxc/monitor.c
src/lxc/storage/overlay.c

index 4f8db5707561e08514294eeb6a20f65f1a1b200e..e2124953c69888e617ecdab766652c3269a8e04f 100644 (file)
@@ -300,7 +300,7 @@ static int lxc_monitord_fifo_handler(int fd, uint32_t events, void *data,
 
        ret = read(fd, &msglxc, sizeof(msglxc));
        if (ret != sizeof(msglxc)) {
-               SYSERROR("Reading from fifo failed: %s.", strerror(errno));
+               SYSERROR("Reading from fifo failed");
                return LXC_MAINLOOP_CLOSE;
        }
 
index e404002d685b9d23b96bb9cfb05e90ef3ff9d1b8..3f71cdd73f64ec474c38423ef6299b0caad15f8c 100644 (file)
@@ -112,8 +112,7 @@ int lsm_process_label_fd_get(pid_t pid, bool on_exec)
 
        labelfd = open(path, O_RDWR);
        if (labelfd < 0) {
-               SYSERROR("%s - Unable to %s LSM label file descriptor",
-                        name, strerror(errno));
+               SYSERROR("Unable to %s LSM label file descriptor", name);
                return -1;
        }
 
index 5c866ae84b08f538d233c8f33836f301fd400656..2bd3a451ed63932332e4d395685a1d3d5a4e38f0 100644 (file)
@@ -261,7 +261,7 @@ int lxc_monitor_read_fdset(struct pollfd *fds, nfds_t nfds, struct lxc_msg *msg,
                        fds[i].revents = 0;
                        ret = recv(fds[i].fd, msg, sizeof(*msg), 0);
                        if (ret <= 0) {
-                               SYSERROR("Failed to receive message. Did monitord die?: %s.", strerror(errno));
+                               SYSERROR("Failed to receive message. Did monitord die?");
                                return -1;
                        }
                        return ret;
index 05d1a3fe03f171785aea438caec88457f22aae0b..a426a021972c28a5b33168266bbaadeb1e4248ba 100644 (file)
@@ -645,9 +645,8 @@ int ovl_mount(struct lxc_storage *bdev)
                ret = ovl_remount_on_enodev(lower, bdev->dest, ovl_name,
                                            MS_MGC_VAL | mntflags, options);
                if (ret < 0)
-                       SYSERROR("Failed to mount \"%s\" on \"%s\" with "
-                                "options \"%s\": %s",
-                                lower, bdev->dest, options, strerror(errno));
+                       SYSERROR("Failed to mount \"%s\" on \"%s\" with options \"%s\"",
+                                lower, bdev->dest, options);
                else
                        INFO("Mounted \"%s\" on \"%s\" with options \"%s\"",
                             lower, bdev->dest, options);