mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 11:57:39 +08:00
Resolve printf formatting warnings on Linux:
- use macros from inttypes.h for format strings instead of OS-specific types Patch from Matt Kopec! llvm-svn: 168945
This commit is contained in:
@@ -301,7 +301,7 @@ SBValue::GetByteSize ()
|
||||
}
|
||||
|
||||
if (log)
|
||||
log->Printf ("SBValue(%p)::GetByteSize () => %llu", value_sp.get(), (uint64_t)result);
|
||||
log->Printf ("SBValue(%p)::GetByteSize () => %" PRIu64, value_sp.get(), (uint64_t)result);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -1755,7 +1755,7 @@ SBValue::GetLoadAddress()
|
||||
}
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
|
||||
if (log)
|
||||
log->Printf ("SBValue(%p)::GetLoadAddress () => (%llu)", value_sp.get(), value);
|
||||
log->Printf ("SBValue(%p)::GetLoadAddress () => (%" PRIu64 ")", value_sp.get(), value);
|
||||
|
||||
return value;
|
||||
}
|
||||
@@ -1792,7 +1792,7 @@ SBValue::GetAddress()
|
||||
}
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
|
||||
if (log)
|
||||
log->Printf ("SBValue(%p)::GetAddress () => (%s,%llu)", value_sp.get(),
|
||||
log->Printf ("SBValue(%p)::GetAddress () => (%s,%" PRIu64 ")", value_sp.get(),
|
||||
(addr.GetSection() ? addr.GetSection()->GetName().GetCString() : "NULL"),
|
||||
addr.GetOffset());
|
||||
return SBAddress(new Address(addr));
|
||||
|
||||
Reference in New Issue
Block a user