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:
Vadim Zeitlin 2011-08-17 10:35:29 +00:00
parent 2032371b3b
commit ee19ab6d80

View File

@ -479,7 +479,7 @@ MyFrame::DoLogRecord(wxLogLevel level,
wxDateTime(info.timestamp).FormatISOTime(),
info.threadId == wxThread::GetMainId()
? wxString("main")
: wxString::Format("%x", info.threadId),
: wxString::Format("%lx", info.threadId),
msg + "\n"
);
}