X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=res%2Blog%2Fgw-log.c;h=3c0a7b7dffb8de10f91f5ff52cc5cd44394a2179;hb=a3501ea5b2dd4a1b1aff2b5ab66e7a028299cdbc;hp=901fb7b07d8e075210e264224eba7d091c6078ee;hpb=db407de046272b028cf37338c9427846d97dfcf3;p=egate.git diff --git a/res+log/gw-log.c b/res+log/gw-log.c index 901fb7b..3c0a7b7 100644 --- a/res+log/gw-log.c +++ b/res+log/gw-log.c @@ -4,7 +4,10 @@ * Europagate, 1994-1995. * * $Log: gw-log.c,v $ - * Revision 1.7 1995/04/10 13:20:25 adam + * Revision 1.8 1995/04/17 09:36:16 adam + * Minor changes. + * + * Revision 1.7 1995/04/10 13:20:25 adam * Use gettimeofday(2) instead of time(2) to get log time in milliseconds. * * Revision 1.6 1995/03/28 08:01:51 adam @@ -152,7 +155,7 @@ int gw_log (unsigned level_a, const char *event_type, const char *format, ...) memcpy (&tms, localtime (&tv.tv_sec), sizeof(tms)); sprintf (emit_str, "%s %d %02d%02d%02d%02d%02d%02d%03d %d %s ", app_name, session, - tms.tm_year, tms.tm_mon, tms.tm_mday, + tms.tm_year, 1+tms.tm_mon, tms.tm_mday, tms.tm_hour, tms.tm_min, tms.tm_sec, (int) (tv.tv_usec/1000), e_level, event_type);