diff --git a/lsyncd.c b/lsyncd.c index e1e55ee..0c12251 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -364,7 +364,7 @@ void printlogf(int level, const char *fmt, ...) flog = fopen(logfile, "a"); if (flog == NULL) { - printf("cannot open logfile [%s]!\n", logfile); + fprintf(stderr, "cannot open logfile [%s]!\n", logfile); exit(LSYNCD_FILENOTFOUND); } } else { @@ -1304,7 +1304,7 @@ struct call_option * parse_callopts(xmlNodePtr node) { xmlStrcmp(cnode->name, BAD_CAST "source") && xmlStrcmp(cnode->name, BAD_CAST "destination") ) { - printf("error unknown call option type \"%s\"", cnode->name); + fprintf(stderr, "error unknown call option type \"%s\"", cnode->name); exit(LSYNCD_BADCONFIGFILE); } opt_n++; @@ -1322,7 +1322,7 @@ struct call_option * parse_callopts(xmlNodePtr node) { if (!xmlStrcmp(cnode->name, BAD_CAST "option")) { xc = xmlGetProp(cnode, BAD_CAST "text"); if (xc == NULL) { - printf("error in config file: text attribute missing from