Use correct format specifier for thread id in the sample.
Thread id is an (unsigned) long, not just unsigned, so use "%lx" to print it instead of "%x" to avoid asserts in formatting code. Closes #13404. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -479,7 +479,7 @@ MyFrame::DoLogRecord(wxLogLevel level,
|
|||||||
wxDateTime(info.timestamp).FormatISOTime(),
|
wxDateTime(info.timestamp).FormatISOTime(),
|
||||||
info.threadId == wxThread::GetMainId()
|
info.threadId == wxThread::GetMainId()
|
||||||
? wxString("main")
|
? wxString("main")
|
||||||
: wxString::Format("%x", info.threadId),
|
: wxString::Format("%lx", info.threadId),
|
||||||
msg + "\n"
|
msg + "\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user