commit 50decd63ff138730a893330dc0ac2bc92a0f4ab0
parent 1fd551dc8a75686b81624ef302ec47189de139de
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Sun, 8 Nov 2015 23:20:31 +0100
Print results to stderr instead of stdout
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/logswan.c b/src/logswan.c
@@ -233,7 +233,7 @@ int main (int argc, char *argv[]) {
strftime(results.timeStamp, 20, "%Y-%m-%d %H:%M:%S", localtime(&now));
/* Printing results */
- printf("Processed %" PRIu64 " lines in %f seconds\n", results.processedLines, results.runtime);
+ fprintf(stderr, "Processed %" PRIu64 " lines in %f seconds\n", results.processedLines, results.runtime);
fclose(logFile);
fputs(output(results), jsonFile);