From 1765feb054301ae251e2f155a57b33631c8d9c84 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 15 Oct 2025 13:52:52 -0400 Subject: Improve error messages in dwarf_import --- plugins/dwarf/dwarf_import/src/lib.rs | 2 +- plugins/dwarf/dwarf_import/src/types.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/dwarf') diff --git a/plugins/dwarf/dwarf_import/src/lib.rs b/plugins/dwarf/dwarf_import/src/lib.rs index ebe3c301..dcac4f0b 100644 --- a/plugins/dwarf/dwarf_import/src/lib.rs +++ b/plugins/dwarf/dwarf_import/src/lib.rs @@ -193,7 +193,7 @@ fn recover_names_internal( let resolved_entry = match entry_unit.entry(entry_offset) { Ok(x) => x, Err(e) => { - log::error!("Failed to resolve entry in unit {:?} at offset {:#x} (resolve_namespace_name): {}", entry_unit, entry_offset.0, e); + log::error!("Failed to resolve entry in unit {:?} at offset {:#x} (resolve_namespace_name): {}", entry_unit.header.offset(), entry_offset.0, e); return; } }; diff --git a/plugins/dwarf/dwarf_import/src/types.rs b/plugins/dwarf/dwarf_import/src/types.rs index 822c0668..8242aa8b 100644 --- a/plugins/dwarf/dwarf_import/src/types.rs +++ b/plugins/dwarf/dwarf_import/src/types.rs @@ -334,7 +334,7 @@ pub(crate) fn get_type( Err(e) => { log::error!( "Failed to resolve entry in unit {:?} at offset {:#x}: {}", - entry_unit, + entry_unit.header.offset(), entry_offset.0, e ); @@ -369,7 +369,7 @@ pub(crate) fn get_type( Err(e) => { log::error!( "Failed to resolve entry in unit {:?} at offset {:#x}: {}", - entry_unit, + entry_unit.header.offset(), entry_offset.0, e ); @@ -401,7 +401,7 @@ pub(crate) fn get_type( Err(e) => { log::error!( "Failed to resolve entry in unit {:?} at offset {:#x}: {}", - entry_unit, + entry_unit.header.offset(), entry_offset.0, e ); -- cgit v1.3.1