summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2011-09-20 21:44:10 +0000
committerJason Molenda <jmolenda@apple.com>2011-09-20 21:44:10 +0000
commitfd54b368ea4d1bd481ac4d203362c2a5556418d0 (patch)
tree3adaaf91c485565d39e32762804b69439977c8fd /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent33e91a6cf7a66b83b29e842268bf9b0a1ef14711 (diff)
downloadbcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.tar.gz
bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.zip
Update declarations for all functions/methods that accept printf-style
stdarg formats to use __attribute__ format so the compiler can flag incorrect uses. Fix all incorrect uses. Most of these are innocuous, a few were resulting in crashes. llvm-svn: 140185
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index 6c55360731c..1cd8c3b34ae 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -1161,9 +1161,9 @@ ObjectFileELF::DumpELFHeader(Stream *s, const ELFHeader &header)
DumpELFHeader_e_type(s, header.e_type);
s->Printf("\ne_machine = 0x%4.4x\n", header.e_machine);
s->Printf("e_version = 0x%8.8x\n", header.e_version);
- s->Printf("e_entry = 0x%8.8lx\n", header.e_entry);
- s->Printf("e_phoff = 0x%8.8lx\n", header.e_phoff);
- s->Printf("e_shoff = 0x%8.8lx\n", header.e_shoff);
+ s->Printf("e_entry = 0x%8.8llx\n", header.e_entry);
+ s->Printf("e_phoff = 0x%8.8llx\n", header.e_phoff);
+ s->Printf("e_shoff = 0x%8.8llx\n", header.e_shoff);
s->Printf("e_flags = 0x%8.8x\n", header.e_flags);
s->Printf("e_ehsize = 0x%4.4x\n", header.e_ehsize);
s->Printf("e_phentsize = 0x%4.4x\n", header.e_phentsize);
@@ -1221,11 +1221,11 @@ void
ObjectFileELF::DumpELFProgramHeader(Stream *s, const ELFProgramHeader &ph)
{
DumpELFProgramHeader_p_type(s, ph.p_type);
- s->Printf(" %8.8lx %8.8lx %8.8lx", ph.p_offset, ph.p_vaddr, ph.p_paddr);
- s->Printf(" %8.8lx %8.8lx %8.8lx (", ph.p_filesz, ph.p_memsz, ph.p_flags);
+ s->Printf(" %8.8llx %8.8llx %8.8llx", ph.p_offset, ph.p_vaddr, ph.p_paddr);
+ s->Printf(" %8.8llx %8.8llx %8.8x (", ph.p_filesz, ph.p_memsz, ph.p_flags);
DumpELFProgramHeader_p_flags(s, ph.p_flags);
- s->Printf(") %8.8x", ph.p_align);
+ s->Printf(") %8.8llx", ph.p_align);
}
//----------------------------------------------------------------------
@@ -1306,11 +1306,11 @@ ObjectFileELF::DumpELFSectionHeader(Stream *s, const ELFSectionHeader &sh)
{
s->Printf("%8.8x ", sh.sh_name);
DumpELFSectionHeader_sh_type(s, sh.sh_type);
- s->Printf(" %8.8lx (", sh.sh_flags);
+ s->Printf(" %8.8llx (", sh.sh_flags);
DumpELFSectionHeader_sh_flags(s, sh.sh_flags);
- s->Printf(") %8.8lx %8.8lx %8.8lx", sh.sh_addr, sh.sh_offset, sh.sh_size);
+ s->Printf(") %8.8llx %8.8llx %8.8llx", sh.sh_addr, sh.sh_offset, sh.sh_size);
s->Printf(" %8.8x %8.8x", sh.sh_link, sh.sh_info);
- s->Printf(" %8.8lx %8.8lx", sh.sh_addralign, sh.sh_entsize);
+ s->Printf(" %8.8llx %8.8llx", sh.sh_addralign, sh.sh_entsize);
}
//----------------------------------------------------------------------
OpenPOWER on IntegriCloud