Unverified Commit 78046c46 by 2xsec Committed by Christian Brauner

parse: cleanups

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent 368f7486
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment