M.Z.
This commit is contained in:
@@ -113,7 +113,7 @@ void logfileStamp(char *text) {
|
||||
fprintf(fil, "---\t%02d:%02d:%02d\n", stamp / 60, stamp % 60, time % 60, text);
|
||||
}
|
||||
} else {
|
||||
fprintf(fil, "\t%02d:%02d:%02d %s", stamp / 60, stamp % 60, time % 60, text);
|
||||
fprintf(fil, "\t%02d:%02d:%02d%s", stamp / 60, stamp % 60, time % 60, text);
|
||||
}
|
||||
dirty=0;
|
||||
lastStamp=stamp;
|
||||
@@ -135,7 +135,11 @@ void logfileOut(int mask, const char *fmt, ...)
|
||||
vsprintf(buf, fmt, ap);
|
||||
assert(buf[statusSize]=='\0'); /* check for overflow */
|
||||
if (buf[0]=='@') {
|
||||
str_ncat(statusBuf, buf+1, statusSize);
|
||||
if (buf[1]==' ') {
|
||||
str_ncat(statusBuf, buf+2, statusSize);
|
||||
} else {
|
||||
str_ncat(statusBuf, buf+1, statusSize);
|
||||
}
|
||||
} else {
|
||||
str_ncat(statusBuf, buf, statusSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user