X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fnfs%2Fconffile.c;h=b277c2a9813b6cc42a8ae9e346675d958c108ef5;hp=6bf423728a5d02cb8e74a20d565fe177d1979f4f;hb=fd51c0c39017f44ceec4229f86eaa7c8e193ebdc;hpb=4d0175ad400ec56456765a15829557f1d541866a 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; }