mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Automatically replace %hs/%ls with %s in CLogger format strings.
Everything is char* now, so we don't need to mess around with different string types. Done with: ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs perl -pi -e'1 while s/(LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR).*)%[hl]s/$1%s/g' This was SVN commit r16187.
This commit is contained in:
@@ -322,7 +322,7 @@ bool CComponentManager::DeserializeState(std::istream& stream)
|
||||
ComponentTypeId ctid = LookupCID(ctname);
|
||||
if (ctid == CID__Invalid)
|
||||
{
|
||||
LOGERROR("Deserialization saw unrecognised component type '%hs'", ctname.c_str());
|
||||
LOGERROR("Deserialization saw unrecognised component type '%s'", ctname.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ bool CComponentManager::DeserializeState(std::istream& stream)
|
||||
ComponentTypeId ctid = LookupCID(ctname);
|
||||
if (ctid == CID__Invalid)
|
||||
{
|
||||
LOGERROR("Deserialization saw unrecognised component type '%hs'", ctname.c_str());
|
||||
LOGERROR("Deserialization saw unrecognised component type '%s'", ctname.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -391,7 +391,7 @@ bool CComponentManager::DeserializeState(std::istream& stream)
|
||||
}
|
||||
catch (PSERROR_Deserialize& e)
|
||||
{
|
||||
LOGERROR("Deserialization failed: %hs", e.what());
|
||||
LOGERROR("Deserialization failed: %s", e.what());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user