Commit 63f12ead authored by Per Cederqvist's avatar Per Cederqvist

(kom_logv): Log the year 2000 as "00", not "100".

(kom_log): (non-HAVE_VPRINTF version) Likewise.
parent 088d2dd6
/*
* $Id: log.c,v 0.21 1999/06/03 22:05:24 ceder Exp $
* $Id: log.c,v 0.22 1999/07/11 09:27:10 ceder Exp $
* Copyright (C) 1991-1995, 1998-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -35,7 +35,7 @@
#endif
static const char *
rcsid = "$Id: log.c,v 0.21 1999/06/03 22:05:24 ceder Exp $";
rcsid = "$Id: log.c,v 0.22 1999/07/11 09:27:10 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -80,7 +80,7 @@ kom_logv (const char *format, va_list AP)
t = localtime(&clk);
fprintf(stderr, "%02d%02d%02d %02d:%02d:%02d %ld ",
t->tm_year, t->tm_mon + 1, t->tm_mday,
t->tm_year % 100, t->tm_mon + 1, t->tm_mday,
t->tm_hour, t->tm_min, t->tm_sec, (long)getpid());
vfprintf(stderr, format, AP);
......@@ -98,7 +98,7 @@ kom_log (const char * format,
t = localtime(&clk);
fprintf(stderr, "%02d%02d%02d %02d:%02d:%02d %ld ",
t->tm_year, t->tm_mon + 1, t->tm_mday,
t->tm_year % 100, t->tm_mon + 1, t->tm_mday,
t->tm_hour, t->tm_min, t->tm_sec, (long)getpid());
fprintf(stderr, format, a, b, c, d, e, f, g);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment