mirror of https://github.com/odrling/Aegisub
Left align microseconds by 6 spaces.
Originally committed to SVN as r4683.
This commit is contained in:
parent
5755d7e1a0
commit
c624b20777
|
@ -37,7 +37,7 @@ void EmitSTDOUT::log(SinkMessage *sm) {
|
|||
// tmtime.tm_mon,
|
||||
// tmtime.tm_mday,
|
||||
|
||||
printf("%c %02d:%02d:%02d %ld <%-25s> [%s:%s:%d] %.*s\n",
|
||||
printf("%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %.*s\n",
|
||||
Severity_ID[sm->severity],
|
||||
tmtime.tm_hour,
|
||||
tmtime.tm_min,
|
||||
|
|
|
@ -39,7 +39,7 @@ void EmitSTDOUT::log(SinkMessage *sm) {
|
|||
localtime_s(&tmtime, &time);
|
||||
|
||||
char buff[1024];
|
||||
_snprintf_s(buff, _TRUNCATE, "%c %02d:%02d:%02d %ld <%-25s> [%s:%s:%d] %.*s\n",
|
||||
_snprintf_s(buff, _TRUNCATE, "%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %.*s\n",
|
||||
Severity_ID[sm->severity],
|
||||
tmtime.tm_hour,
|
||||
tmtime.tm_min,
|
||||
|
|
|
@ -100,7 +100,7 @@ void LogWindow::EmitLog::Write(agi::log::SinkMessage *sm) {
|
|||
#ifndef _WIN32
|
||||
tm tmtime;
|
||||
localtime_r(&sm->tv.tv_sec, &tmtime);
|
||||
wxString log = wxString::Format("%c %02d:%02d:%02d %ld <%-25s> [%s:%s:%d] %s\n",
|
||||
wxString log = wxString::Format("%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %s\n",
|
||||
agi::log::Severity_ID[sm->severity],
|
||||
tmtime.tm_hour,
|
||||
tmtime.tm_min,
|
||||
|
@ -112,7 +112,7 @@ void LogWindow::EmitLog::Write(agi::log::SinkMessage *sm) {
|
|||
sm->line,
|
||||
strndup(sm->message, sm->len));
|
||||
#else
|
||||
wxString log = wxString::Format("%c %ld <%-25s> [%s:%s:%d] %s\n",
|
||||
wxString log = wxString::Format("%c %-6ld <%-25s> [%s:%s:%d] %s\n",
|
||||
agi::log::Severity_ID[sm->severity],
|
||||
sm->tv.tv_usec,
|
||||
sm->section,
|
||||
|
|
Loading…
Reference in New Issue