Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
5438ee07
Commit
5438ee07
authored
Aug 12, 1992
by
Per Cederqvist
Browse files
Print only one line for each log message.
parent
dd216083
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/log.c
View file @
5438ee07
/*
* $Id: log.c,v 0.
3
199
1
/0
9
/1
5 10:3
1:
3
6
linus
Exp $
* $Id: log.c,v 0.
4
199
2
/0
8
/1
2 04:1
1:
5
6
ceder
Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* File created by ceder 1990-05-25.
*/
static
char
*
rcsid
=
"$Id: log.c,v 0.
3
199
1
/0
9
/1
5 10:3
1:
3
6
linus
Exp $"
;
static
char
*
rcsid
=
"$Id: log.c,v 0.
4
199
2
/0
8
/1
2 04:1
1:
5
6
ceder
Exp $"
;
#include
<stdarg.h>
...
...
@@ -56,11 +56,14 @@ extern void
logv
(
const
char
*
format
,
va_list
AP
)
{
time_t
clock
;
struct
tm
*
t
;
time
(
&
clock
);
t
=
localtime
(
&
clock
);
fprintf
(
stderr
,
"--LOGG-> %s: "
,
ctime
(
&
clock
));
fprintf
(
stderr
,
"%4d-%2d-%2d %2d:%2d:%2d "
,
t
->
tm_year
+
1900
,
t
->
tm_mon
+
1
,
t
->
tm_mday
,
t
->
tm_hour
,
t
->
tm_min
,
t
->
tm_sec
);
vfprintf
(
stderr
,
format
,
AP
);
fflush
(
stderr
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment