]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
parse: cleanups 2709/head
author2xsec <dh48.jeong@samsung.com>
Tue, 23 Oct 2018 06:20:24 +0000 (15:20 +0900)
committer2xsec <dh48.jeong@samsung.com>
Tue, 23 Oct 2018 10:01:37 +0000 (19:01 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/parse.c

index 1c1ddaa2c1c7f4b3e244e33295eb201b24129650..5abada058b5d38cba04b4301fa640b8a9f07520e 100644 (file)
@@ -101,7 +101,6 @@ int lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *da
                return -1;
        }
 
-
        /* sendfile() handles up to 2GB. No config file should be that big. */
        bytes_sent = lxc_sendfile_nointr(memfd, fd, NULL, LXC_SENDFILE_MAX);
        if (bytes_sent < 0) {
@@ -170,7 +169,7 @@ int lxc_file_for_each_line(const char *file, lxc_file_cb callback, void *data)
 
        f = fopen(file, "r");
        if (!f) {
-               SYSERROR("failed to open %s", file);
+               SYSERROR("Failed to open \"%s\"", file);
                return -1;
        }
 
@@ -181,7 +180,7 @@ int lxc_file_for_each_line(const char *file, lxc_file_cb callback, void *data)
                         * error.
                         */
                        if (err < 0)
-                               ERROR("Failed to parse config: %s", line);
+                               ERROR("Failed to parse config: \"%s\"", line);
                        break;
                }
        }