projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added STATS command. Patch by Ville Räsänen.
[silc.git]
/
lib
/
silcutil
/
silclog.c
diff --git
a/lib/silcutil/silclog.c
b/lib/silcutil/silclog.c
index 5f770769103d9f085b6d5dca501ad511d4c6f3d2..8ce34c0970be2e5826597b055adc1301e896c094 100644
(file)
--- a/
lib/silcutil/silclog.c
+++ b/
lib/silcutil/silclog.c
@@
-122,7
+122,7
@@
static void silc_log_checksize(SilcLog log)
/* It's too big */
fprintf(log->fp, "[%s] [%s] Cycling log file, over max "
"logsize (%lu kilobytes)\n",
/* It's too big */
fprintf(log->fp, "[%s] [%s] Cycling log file, over max "
"logsize (%lu kilobytes)\n",
- silc_get_time(), log->typename, log->maxsize / 1024);
+ silc_get_time(
0
), log->typename, log->maxsize / 1024);
fflush(log->fp);
fclose(log->fp);
snprintf(newname, sizeof(newname), "%s.old", log->filename);
fflush(log->fp);
fclose(log->fp);
snprintf(newname, sizeof(newname), "%s.old", log->filename);
@@
-225,7
+225,7
@@
void silc_log_output(SilcLogType type, char *string)
found:
/* writes the logging string to the selected channel */
if (silc_log_timestamp)
found:
/* writes the logging string to the selected channel */
if (silc_log_timestamp)
- fprintf(fp, "[%s] [%s] %s\n", silc_get_time(), typename, string);
+ fprintf(fp, "[%s] [%s] %s\n", silc_get_time(
0
), typename, string);
else
fprintf(fp, "[%s] %s\n", typename, string);
else
fprintf(fp, "[%s] %s\n", typename, string);