X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Flog.c;h=151b9ea167f823e5eab630c489734ff5984c41c4;hb=191439ab6ffe1cad91825ae84286bf720370f863;hp=6c8cb5d6a2ea8e4062684d390979a59a4250873e;hpb=1f1f8e67c96ea0b002241fea4db086a0d2d260af;p=swftools.git diff --git a/lib/log.c b/lib/log.c index 6c8cb5d..151b9ea 100644 --- a/lib/log.c +++ b/lib/log.c @@ -74,10 +74,10 @@ void setFileLogging(char*filename, int level, char append) } } /* deprecated */ -void initLog(char* filename, int fileloglevel, char* s00, char* s01, int s02, int screenlevel) +void initLog(char* filename, int filelevel, char* s00, char* s01, int s02, int screenlevel) { - setFileLogging(filename, fileloglevel, 0); - setConsoleLogging(screenloglevel); + setFileLogging(filename, filelevel, 0); + setConsoleLogging(screenlevel); } void exitLog() @@ -175,7 +175,7 @@ static inline void log(const char* logString) { if (logFile != NULL) { - fprintf(logFile, "%s\n", logBuffer); + fprintf(logFile, "%s\r\n", logBuffer); fflush(logFile); } }