mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-05-12 03:19:34 +00:00
Change verbosity of some functions
This commit is contained in:
parent
2145d79efb
commit
f0bddc0001
@ -2080,7 +2080,7 @@ void Binary::shift_dynamic_entries(uint64_t from, uint64_t shift) {
|
||||
|
||||
default:
|
||||
{
|
||||
LIEF_WARN("{} not supported", to_string(entry->tag()));
|
||||
LIEF_DEBUG("{} skipped", to_string(entry->tag()));
|
||||
}
|
||||
}
|
||||
LIEF_DEBUG("[AFTER] {}", *entry);
|
||||
@ -2145,7 +2145,7 @@ void Binary::shift_relocations(uint64_t from, uint64_t shift) {
|
||||
|
||||
default:
|
||||
{
|
||||
LIEF_WARN("Relocations for architecture {} is not supported!", to_string(arch));
|
||||
LIEF_DEBUG("Relocations for architecture {} is not handled", to_string(arch));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ void Binary::patch_relocations<ARCH::EM_ARM>(uint64_t from, uint64_t shift) {
|
||||
|
||||
default:
|
||||
{
|
||||
LIEF_WARN("Relocation {} not supported!", to_string(type));
|
||||
LIEF_DEBUG("Relocation {} is not patched", to_string(type));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -116,7 +116,7 @@ void Binary::patch_relocations<ARCH::EM_AARCH64>(uint64_t from, uint64_t shift)
|
||||
|
||||
default:
|
||||
{
|
||||
LIEF_WARN("Relocation {} not supported!", to_string(type));
|
||||
LIEF_DEBUG("Relocation {} is not patched", to_string(type));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -187,7 +187,7 @@ void Binary::patch_relocations<ARCH::EM_X86_64>(uint64_t from, uint64_t shift) {
|
||||
|
||||
default:
|
||||
{
|
||||
LIEF_WARN("Relocation {} not supported!", to_string(type));
|
||||
LIEF_DEBUG("Relocation {} is not patched", to_string(type));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -216,7 +216,7 @@ void Binary::patch_relocations<ARCH::EM_PPC>(uint64_t from, uint64_t shift) {
|
||||
|
||||
default:
|
||||
{
|
||||
LIEF_WARN("Relocation {} not supported!", to_string(type));
|
||||
LIEF_DEBUG("Relocation {} is not patched", to_string(type));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -892,7 +892,9 @@ void Parser::parse_sections(void) {
|
||||
|
||||
const uint8_t* content = this->stream_->peek_array<uint8_t>(offset_to_content, size, /* check */false);
|
||||
if (content == nullptr) {
|
||||
LIEF_ERR(" Unable to get content of section #{:d}", i);
|
||||
if (section->type() != ELF_SECTION_TYPES::SHT_NOBITS) {
|
||||
LIEF_WARN(" Unable to get content of section #{:d}", i);
|
||||
}
|
||||
} else {
|
||||
section->content({content, content + size});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user