Fix wrong format specifier in wxMarkupParser debug logs
Use "%z" and not "%l" for size_t arguments.
This commit is contained in:
parent
ce46d77360
commit
4b918d16d0
@ -294,7 +294,7 @@ bool wxMarkupParser::Parse(const wxString& text)
|
|||||||
const wxString tag = ExtractUntil('>', it, end);
|
const wxString tag = ExtractUntil('>', it, end);
|
||||||
if ( tag.empty() )
|
if ( tag.empty() )
|
||||||
{
|
{
|
||||||
wxLogDebug("%s at %lu.",
|
wxLogDebug("%s at %zu.",
|
||||||
it == end ? "Unclosed tag starting"
|
it == end ? "Unclosed tag starting"
|
||||||
: "Empty tag",
|
: "Empty tag",
|
||||||
pos);
|
pos);
|
||||||
@ -311,7 +311,7 @@ bool wxMarkupParser::Parse(const wxString& text)
|
|||||||
if ( !err.empty() )
|
if ( !err.empty() )
|
||||||
{
|
{
|
||||||
wxLogDebug("Bad attributes for \"%s\" "
|
wxLogDebug("Bad attributes for \"%s\" "
|
||||||
"at %lu: %s.",
|
"at %zu: %s.",
|
||||||
name, pos, err);
|
name, pos, err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -322,7 +322,7 @@ bool wxMarkupParser::Parse(const wxString& text)
|
|||||||
{
|
{
|
||||||
if ( tags.empty() || tags.top().name != tag )
|
if ( tags.empty() || tags.top().name != tag )
|
||||||
{
|
{
|
||||||
wxLogDebug("Unmatched closing tag \"%s\" at %lu.",
|
wxLogDebug("Unmatched closing tag \"%s\" at %zu.",
|
||||||
tag, pos);
|
tag, pos);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -330,7 +330,7 @@ bool wxMarkupParser::Parse(const wxString& text)
|
|||||||
|
|
||||||
if ( !OutputTag(tags.top(), start) )
|
if ( !OutputTag(tags.top(), start) )
|
||||||
{
|
{
|
||||||
wxLogDebug("Unknown tag at %lu.", pos);
|
wxLogDebug("Unknown tag at %zu.", pos);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ bool wxMarkupParser::Parse(const wxString& text)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '>':
|
case '>':
|
||||||
wxLogDebug("'>' should be escaped as \">\"; at %lu.",
|
wxLogDebug("'>' should be escaped as \">\"; at %zu.",
|
||||||
it - text.begin());
|
it - text.begin());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user