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:
Ykkrosh
2015-01-22 20:36:24 +00:00
parent 38a8e2e0d6
commit e02d7ad949
83 changed files with 330 additions and 330 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ void* CDebuggingServer::MgDebuggingServerCallback(mg_event event, struct mg_conn
case MG_EVENT_LOG:
// Called by Mongoose's cry()
LOGERROR("Mongoose error: %hs", request_info->log_message);
LOGERROR("Mongoose error: %s", request_info->log_message);
return NULL;
case MG_INIT_SSL: