diff --git a/rust-crates/symblib/src/symbconv/dwarf/mod.rs b/rust-crates/symblib/src/symbconv/dwarf/mod.rs index 260980f12..3e3af89e7 100644 --- a/rust-crates/symblib/src/symbconv/dwarf/mod.rs +++ b/rust-crates/symblib/src/symbconv/dwarf/mod.rs @@ -341,7 +341,7 @@ fn extract_ranges( } }; - eprintln!("Processing {:?}", &unit); + debug!("Processing {:?}", &unit); match process_unit(unit, &mut visitor) { Ok(()) => stats.units_ok += 1, Err(e) => { diff --git a/rust-crates/symblib/src/symbconv/go.rs b/rust-crates/symblib/src/symbconv/go.rs index 25c379e0f..a5ac90d3f 100644 --- a/rust-crates/symblib/src/symbconv/go.rs +++ b/rust-crates/symblib/src/symbconv/go.rs @@ -6,7 +6,7 @@ //! This is currently still very basic and doesn't support inline functions //! or constructing line tables. -use crate::{gosym, objfile, symbfile, AnyError}; +use crate::{debug, gosym, objfile, symbfile, AnyError}; use fallible_iterator::FallibleIterator as _; /// Result type shorthand. @@ -70,7 +70,7 @@ fn extract_ranges(obj: &objfile::Reader<'_>, visitor: super::RangeVisitor<'_>) - while let Some(func) = func_iter.next()? { // Infer end of function from line tables. let Some(end) = func.line_mapping()?.map(|(rng, _)| Ok(rng.end)).max()? else { - eprintln!( + debug!( "WARN: unable to determine end of function ({})", func.name()? ); @@ -80,7 +80,7 @@ fn extract_ranges(obj: &objfile::Reader<'_>, visitor: super::RangeVisitor<'_>) - let length = end.saturating_sub(func.start_addr()); if length == 0 { - eprintln!("WARN: zero function length ({})", func.name()?); + debug!("WARN: zero function length ({})", func.name()?); stats.funcs_skipped += 1; continue; }