From: John F. <jo...@us...> - 2013-07-15 10:49:26
|
Update of /cvsroot/ingex/ingex/common In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv3553 Modified Files: logF.c Log Message: Improved compatibility on MacOS Index: logF.c =================================================================== RCS file: /cvsroot/ingex/ingex/common/logF.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** logF.c 24 Nov 2011 15:48:20 -0000 1.6 --- logF.c 15 Jul 2013 10:49:23 -0000 1.7 *************** *** 250,254 **** localtime_r(&now, &l); ! printf("%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, tv.tv_usec); vprintf(fmt, ap); --- 250,254 ---- localtime_r(&now, &l); ! printf("%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, (long)tv.tv_usec); vprintf(fmt, ap); *************** *** 261,265 **** if (logfile_open) { ! fprintf(pLogFile, "%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, tv.tv_usec); vfprintf(pLogFile, fmt, ap); --- 261,265 ---- if (logfile_open) { ! fprintf(pLogFile, "%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, (long)tv.tv_usec); vfprintf(pLogFile, fmt, ap); *************** *** 280,284 **** localtime_r(&now, &l); ! printf("%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, tv.tv_usec); va_start(ap, fmt); vprintf(fmt, ap); --- 280,284 ---- localtime_r(&now, &l); ! printf("%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, (long)tv.tv_usec); va_start(ap, fmt); vprintf(fmt, ap); *************** *** 291,295 **** if (logfile_open) { ! fprintf(pLogFile, "%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, tv.tv_usec); va_start(ap, fmt); vfprintf(pLogFile, fmt, ap); --- 291,295 ---- if (logfile_open) { ! fprintf(pLogFile, "%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, (long)tv.tv_usec); va_start(ap, fmt); vfprintf(pLogFile, fmt, ap); *************** *** 315,319 **** if (logfile_open) { ! fprintf(pLogFile, "%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, tv.tv_usec); va_start(ap, fmt); vfprintf(pLogFile, fmt, ap); --- 315,319 ---- if (logfile_open) { ! fprintf(pLogFile, "%02d %02d:%02d:%02d.%06ld ", l.tm_mday, l.tm_hour, l.tm_min, l.tm_sec, (long)tv.tv_usec); va_start(ap, fmt); vfprintf(pLogFile, fmt, ap); |