From d2ee93856b455a2fbd5a42b52bfe847d1c7f29d1 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Sun, 9 Jun 2024 12:17:23 -0400 Subject: Change some dwarf errors to warnings --- rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/examples') diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs index 7ab5775a..c1690233 100644 --- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -296,7 +296,7 @@ impl DebugInfoBuilder { }, ) { if existing_type != t && commit { - error!("DWARF info contains duplicate type definition. Overwriting type `{}` (named `{:?}`) with `{}` (named `{:?}`)", + warn!("DWARF info contains duplicate type definition. Overwriting type `{}` (named `{:?}`) with `{}` (named `{:?}`)", existing_type, existing_name, t, @@ -334,7 +334,7 @@ impl DebugInfoBuilder { let new_type = self.get_type(type_uid).unwrap().1; if existing_type_uid != type_uid || existing_type != new_type { - error!("DWARF info contains duplicate data variable definition. Overwriting data variable at 0x{:08x} (`{}`) with `{}`", + warn!("DWARF info contains duplicate data variable definition. Overwriting data variable at 0x{:08x} (`{}`) with `{}`", address, self.get_type(existing_type_uid).unwrap().1, self.get_type(type_uid).unwrap().1 -- cgit v1.3.1