Fix the format warnings.
In almost all cases, the misuse is about "%lu" being used instead of the correct "%zu" (even though these are compatible on 64-bit platforms in practice). There are even a couple of cases where "%ld" (ie., signed int) is used instead of "%zu", and one where "%lu" is used instead of "%" PRIu64. Fixes bug #17551. Patch by "/dev/humancontroller" llvm-svn: 193832
This commit is contained in:
@@ -331,7 +331,7 @@ ScriptInterpreterPython::PythonInputReaderManager::InputReaderCallback (void *ba
|
||||
if (script_interpreter->m_embedded_thread_pty.GetMasterFileDescriptor() != -1)
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("ScriptInterpreterPython::NonInteractiveInputReaderCallback, GotToken, bytes='%s', byte_len = %lu", bytes,
|
||||
log->Printf ("ScriptInterpreterPython::NonInteractiveInputReaderCallback, GotToken, bytes='%s', byte_len = %zu", bytes,
|
||||
bytes_len);
|
||||
if (bytes && bytes_len)
|
||||
::write (script_interpreter->m_embedded_thread_pty.GetMasterFileDescriptor(), bytes, bytes_len);
|
||||
@@ -340,7 +340,7 @@ ScriptInterpreterPython::PythonInputReaderManager::InputReaderCallback (void *ba
|
||||
else
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("ScriptInterpreterPython::NonInteractiveInputReaderCallback, GotToken, bytes='%s', byte_len = %lu, Master File Descriptor is bad.",
|
||||
log->Printf ("ScriptInterpreterPython::NonInteractiveInputReaderCallback, GotToken, bytes='%s', byte_len = %zu, Master File Descriptor is bad.",
|
||||
bytes,
|
||||
bytes_len);
|
||||
reader.SetIsDone (true);
|
||||
@@ -867,7 +867,7 @@ ScriptInterpreterPython::InputReaderCallback
|
||||
if (script_interpreter->m_embedded_python_pty.GetMasterFileDescriptor() != -1)
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %lu", bytes,
|
||||
log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %zu", bytes,
|
||||
bytes_len);
|
||||
if (bytes && bytes_len)
|
||||
{
|
||||
@@ -881,7 +881,7 @@ ScriptInterpreterPython::InputReaderCallback
|
||||
else
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %lu, Master File Descriptor is bad.",
|
||||
log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %zu, Master File Descriptor is bad.",
|
||||
bytes,
|
||||
bytes_len);
|
||||
reader.SetIsDone (true);
|
||||
|
||||
Reference in New Issue
Block a user