diff options
author | asynts <asynts@gmail.com> | 2021-01-24 15:28:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-25 09:47:36 +0100 |
commit | eea72b9b5c12b9ffdf80e0990518ce183ac0cf70 (patch) | |
tree | 7bc797f5e86863391e506ae188616356d3b0ec11 /Userland/Libraries/LibELF/Image.cpp | |
parent | da69de1f1b04e304772daed5223a380fb13f82d6 (diff) | |
download | serenity-eea72b9b5c12b9ffdf80e0990518ce183ac0cf70.zip |
Everywhere: Hook up remaining debug macros to Debug.h.
Diffstat (limited to 'Userland/Libraries/LibELF/Image.cpp')
-rw-r--r-- | Userland/Libraries/LibELF/Image.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Libraries/LibELF/Image.cpp b/Userland/Libraries/LibELF/Image.cpp index c4c16e62a0..190c758f4f 100644 --- a/Userland/Libraries/LibELF/Image.cpp +++ b/Userland/Libraries/LibELF/Image.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/Debug.h> #include <AK/Demangle.h> #include <AK/Memory.h> #include <AK/QuickSort.h> @@ -51,7 +52,7 @@ Image::~Image() { } -#ifdef ELF_IMAGE_DEBUG +#if ELF_IMAGE_DEBUG static const char* object_file_type_to_string(Elf32_Half type) { switch (type) { @@ -91,7 +92,7 @@ unsigned Image::symbol_count() const void Image::dump() const { -#ifdef ELF_IMAGE_DEBUG +#if ELF_IMAGE_DEBUG dbgln("ELF::Image({:p}) {{", this); dbgln(" is_valid: {}", is_valid()); @@ -293,7 +294,7 @@ const Image::RelocationSection Image::Section::relocations() const if (relocation_section.type() != SHT_REL) return static_cast<const RelocationSection>(m_image.section(0)); -#ifdef ELF_IMAGE_DEBUG +#if ELF_IMAGE_DEBUG dbgln("Found relocations for {} in {}", name(), relocation_section.name()); #endif return static_cast<const RelocationSection>(relocation_section); |