/* Don't print the timestamp or thread id if we recursed */
if (rec == 0) {
currenttime = time(0);
- if (strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y ",
+ if (strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y ",
localtime_r(¤ttime, &tm)) !=0)
audit_ops->append_msg(tbuffer);
struct tm tm;
now = time(0);
- if (strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ if (strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&now, &tm)) != 0)
fprintf(logIO, "%s: ", tbuffer);
struct tm tm;
now = time(0);
- if (strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ if (strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&now, &tm)) != 0)
fprintf(ErrorlogIO, "%s: ", tbuffer);
struct tm tm;
when = time(NULL);
- strftime(tdate, sizeof(tdate), "%a %b %d %T %Y",
+ strftime(tdate, sizeof(tdate), "%a %b %d %H:%M:%S %Y",
localtime_r(&when, &tm));
fprintf(stderr, "%s Assertion failed! file %s, line %d.\n", tdate, file,
line);
int num;
currenttime = time(NULL);
- len = strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y ",
+ len = strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y ",
localtime_r(¤ttime, &tm));
info = &tbuffer[len];
H_UNLOCK;
return 0;
}
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&LastCall, &tm));
snprintf(tmpStr, sizeof tmpStr, "Host %s:%d down = %d, LastCall %s\n",
afs_inet_ntoa_r(host->host, hoststr),
for (client = host->FirstClient; client; client = client->next) {
if (!client->deleted) {
expTime = client->expTime;
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&expTime, &tm));
snprintf(tmpStr, sizeof tmpStr,
" user id=%d, name=%s, sl=%s till %s\n",
return;
}
now = FT_ApproxTime();
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&now, &tm));
snprintf(tmpStr, sizeof tmpStr, "List of active users at %s\n\n",
tbuffer);
return;
}
now = FT_ApproxTime();
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&now, &tm));
snprintf(tmpStr, sizeof tmpStr, "List of active hosts at %s\n\n", tbuffer);
(void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file);
if (printBanner && (++msg & 1)) { /* Every 10 minutes */
time_t now = FT_ApproxTime();
struct tm tm;
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&now, &tm));
ViceLog(2,
("File server is running at %s\n", tbuffer));
FT_GetTimeOfDay(&tpl, 0);
Statistics = 1;
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&StartTime, &tm));
ViceLog(0, ("Vice was last started at %s\n", tbuffer));
FS_STATE_UNLOCK;
#endif
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&now, &tm));
ViceLog(0, ("Shutting down file server at %s\n", tbuffer));
if (dopanic)
fflush(debugFile);
}
now = time(0);
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&now, &tm));
if (dopanic) {
ViceLog(0, ("File server has terminated abnormally at %s\n", tbuffer));
}
t = tp.tv_sec;
- strftime(tbuffer, sizeof(tbuffer), "%a %b %d %T %Y",
+ strftime(tbuffer, sizeof(tbuffer), "%a %b %d %H:%M:%S %Y",
localtime_r(&t, &tm));
ViceLog(0, ("File Server started %s\n", tbuffer));
#if FS_STATS_DETAILED
time_t start_time = stats->start_time;
struct tm tm;
- strftime(strg, sizeof(strg), "%a %b %d %T %Y",
+ strftime(strg, sizeof(strg), "%a %b %d %H:%M:%S %Y",
localtime_r(&start_time, &tm));
printf("Dynamic statistics stats (starting time: %s):\n", strg);
printf("OpcodeName\t# Requests\t# Aborts\n");