diff options
| author | Daniel Malea <daniel.malea@intel.com> | 2012-11-29 21:49:15 +0000 |
|---|---|---|
| committer | Daniel Malea <daniel.malea@intel.com> | 2012-11-29 21:49:15 +0000 |
| commit | d01b2953fac73977de3bc97e72ea04ad1ec6600f (patch) | |
| tree | 1883eeb5c13d5a2aa557d50eb40a0e08f43a8ec1 /lldb/source/API/SBBreakpoint.cpp | |
| parent | 05d3bf77a1af49e8f6513729e4ccce780ffae4bb (diff) | |
| download | bcm5719-llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.tar.gz bcm5719-llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.zip | |
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
Diffstat (limited to 'lldb/source/API/SBBreakpoint.cpp')
| -rw-r--r-- | lldb/source/API/SBBreakpoint.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/API/SBBreakpoint.cpp b/lldb/source/API/SBBreakpoint.cpp index b0b1e2a042b..f0e29176a9e 100644 --- a/lldb/source/API/SBBreakpoint.cpp +++ b/lldb/source/API/SBBreakpoint.cpp @@ -353,7 +353,7 @@ SBBreakpoint::SetThreadID (tid_t tid) } LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); if (log) - log->Printf ("SBBreakpoint(%p)::SetThreadID (tid=0x%4.4llx)", m_opaque_sp.get(), tid); + log->Printf ("SBBreakpoint(%p)::SetThreadID (tid=0x%4.4" PRIx64 ")", m_opaque_sp.get(), tid); } @@ -369,7 +369,7 @@ SBBreakpoint::GetThreadID () LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); if (log) - log->Printf ("SBBreakpoint(%p)::GetThreadID () => 0x%4.4llx", m_opaque_sp.get(), tid); + log->Printf ("SBBreakpoint(%p)::GetThreadID () => 0x%4.4" PRIx64, m_opaque_sp.get(), tid); return tid; } @@ -479,7 +479,7 @@ SBBreakpoint::GetNumResolvedLocations() const } LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); if (log) - log->Printf ("SBBreakpoint(%p)::GetNumResolvedLocations () => %llu", m_opaque_sp.get(), (uint64_t)num_resolved); + log->Printf ("SBBreakpoint(%p)::GetNumResolvedLocations () => %" PRIu64, m_opaque_sp.get(), (uint64_t)num_resolved); return num_resolved; } @@ -494,7 +494,7 @@ SBBreakpoint::GetNumLocations() const } LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); if (log) - log->Printf ("SBBreakpoint(%p)::GetNumLocations () => %llu", m_opaque_sp.get(), (uint64_t)num_locs); + log->Printf ("SBBreakpoint(%p)::GetNumLocations () => %" PRIu64, m_opaque_sp.get(), (uint64_t)num_locs); return num_locs; } @@ -508,7 +508,7 @@ SBBreakpoint::GetDescription (SBStream &s) m_opaque_sp->GetResolverDescription (s.get()); m_opaque_sp->GetFilterDescription (s.get()); const size_t num_locations = m_opaque_sp->GetNumLocations (); - s.Printf(", locations = %llu", (uint64_t)num_locations); + s.Printf(", locations = %" PRIu64, (uint64_t)num_locations); return true; } s.Printf ("No value"); |

