diff options
author | Steve Dickson <steved@redhat.com> | 2009-08-17 08:50:04 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-08-17 08:50:04 -0400 |
commit | fd51c0c39017f44ceec4229f86eaa7c8e193ebdc (patch) | |
tree | 545ab2daa9355f19b67c3ce42a694f1dd286794c /support | |
parent | 4d0175ad400ec56456765a15829557f1d541866a (diff) | |
download | nfs-utils-fd51c0c39017f44ceec4229f86eaa7c8e193ebdc.tar.gz nfs-utils-fd51c0c39017f44ceec4229f86eaa7c8e193ebdc.tar.xz nfs-utils-fd51c0c39017f44ceec4229f86eaa7c8e193ebdc.zip |
Cleaned up parsing errors to hopeful be more precise
Also had mount_config_init() call xlog_open() so
the program name is set on xlog() calls.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support')
-rw-r--r-- | support/nfs/conffile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c index 6bf4237..b277c2a 100644 --- a/support/nfs/conffile.c +++ b/support/nfs/conffile.c @@ -244,7 +244,7 @@ conf_parse_line(int trans, char *line, size_t sz) if (section) free(section); if (i == sz) { - xlog_warn("conf_parse_line: %d:" + xlog_warn("config file error: line %d: " "non-matched ']', ignoring until next section", ln); section = 0; return; @@ -274,7 +274,7 @@ conf_parse_line(int trans, char *line, size_t sz) while (*ptr && *ptr != '"') ptr++; if (*ptr == '\0') { - xlog_warn("conf_parse_line: line %d:" + xlog_warn("config file error: line %d: " "non-matched '\"', ignoring until next section", ln); } else { *ptr = '\0'; @@ -290,8 +290,8 @@ conf_parse_line(int trans, char *line, size_t sz) if (line[i] == '=') { /* If no section, we are ignoring the lines. */ if (!section) { - xlog_warn("conf_parse_line: %d: ignoring line due to no section", - ln); + xlog_warn("config file error: line %d: " + "ignoring line due to no section", ln); return; } line[strcspn (line, " \t=")] = '\0'; @@ -321,7 +321,7 @@ conf_parse_line(int trans, char *line, size_t sz) /* Other non-empty lines are weird. */ i = strspn(line, " \t"); if (line[i]) - xlog_warn("conf_parse_line: %d: syntax error", ln); + xlog_warn("config file error: line %d:", ln); return; } |