[Lldb-commits] [PATCH] D12203: Fix some format strings in ProcessGDBRemote.cpp.

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 20 11:49:49 PDT 2015


sas created this revision.
sas added reviewers: clayborg, ADodds.
sas added a subscriber: lldb-commits.

Size specifier should come after `%` not before.

http://reviews.llvm.org/D12203

Files:
  source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Index: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
===================================================================
--- source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -4603,7 +4603,7 @@
                 module.get_base (base);
                 module.get_dynamic (ld);
 
-                log->Printf ("found (link_map:0x08%" PRIx64 ", base:0x08%" PRIx64 ", ld:0x08%" PRIx64 ", name:'%s')", lm, base, ld, name.c_str());
+                log->Printf ("found (link_map:0x%08" PRIx64 ", base:0x%08" PRIx64 ", ld:0x%08" PRIx64 ", name:'%s')", lm, base, ld, name.c_str());
             }
 
             list.add (module);
@@ -4653,7 +4653,7 @@
                 module.get_name (name);
                 module.get_base (base);
 
-                log->Printf ("found (base:0x%" PRIx64 ", name:'%s')", base, name.c_str());
+                log->Printf ("found (base:0x%08" PRIx64 ", name:'%s')", base, name.c_str());
             }
 
             list.add (module);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12203.32719.patch
Type: text/x-patch
Size: 1041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150820/3634d177/attachment.bin>


More information about the lldb-commits mailing list