Skip to content

Commit

Permalink
parse: cleanups
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
  • Loading branch information
2xsec authored and Christian Brauner committed Nov 22, 2018
1 parent 368f748 commit 78046c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lxc/parse.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 78046c4

Please sign in to comment.