Skip to content

Commit

Permalink
[lldb] Fix compile warnings in r332702
Browse files Browse the repository at this point in the history
Summary:
- Fix #include path
- Fix warning:
````
error: format specifies type 'unsigned long long' but the argument has type 'uint64_t'
(aka 'unsigned long') [-Werror,-Wformat]
 ```

Reviewers: labath, javed.absar

Differential Revision: https://reviews.llvm.org/D47072

llvm-svn: 332733
  • Loading branch information
Eric Liu committed May 18, 2018
1 parent db53a52 commit ff9c4ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -29,7 +29,7 @@
#endif

// Project includes
#include "ARM_DWARF_Registers.h"
#include "Utility/ARM_DWARF_Registers.h"
#include "Utility/ARM_ehframe_Registers.h"

#include "llvm/ADT/STLExtras.h"
Expand Down
Expand Up @@ -33,7 +33,7 @@
#endif

// Project includes
#include "ARM64_DWARF_Registers.h"
#include "Utility/ARM64_DWARF_Registers.h"

using namespace lldb;
using namespace lldb_private;
Expand Down Expand Up @@ -293,8 +293,9 @@ int RegisterContextDarwin_arm64::WriteRegisterSet(uint32_t set) {
void RegisterContextDarwin_arm64::LogDBGRegisters(Log *log, const DBG &dbg) {
if (log) {
for (uint32_t i = 0; i < 16; i++)
log->Printf("BVR%-2u/BCR%-2u = { 0x%8.8llx, 0x%8.8llx } WVR%-2u/WCR%-2u "
"= { 0x%8.8llx, 0x%8.8llx }",
log->Printf("BVR%-2u/BCR%-2u = { 0x%8.8" PRIu64 ", 0x%8.8" PRIu64
" } WVR%-2u/WCR%-2u "
"= { 0x%8.8" PRIu64 ", 0x%8.8" PRIu64 " }",
i, i, dbg.bvr[i], dbg.bcr[i], i, i, dbg.wvr[i], dbg.wcr[i]);
}
}
Expand Down

0 comments on commit ff9c4ff

Please sign in to comment.