Resolve printf formatting warnings on Linux:
- use macros from inttypes.h for format strings instead of OS-specific types
Patch from Matt Kopec!
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@168945 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBData.cpp b/source/API/SBData.cpp
index 60b451c..9f9bc4f 100644
--- a/source/API/SBData.cpp
+++ b/source/API/SBData.cpp
@@ -322,7 +322,7 @@
}
if (log)
log->Printf ("SBData::GetUnsignedInt64 (error=%p,offset=%d) => "
- "(%lld)", error.get(), offset, value);
+ "(%" PRId64 ")", error.get(), offset, value);
return value;
}
@@ -410,7 +410,7 @@
}
if (log)
log->Printf ("SBData::GetSignedInt64 (error=%p,offset=%d) => "
- "(%lld)", error.get(), offset, value);
+ "(%" PRId64 ")", error.get(), offset, value);
return value;
}