summaryrefslogtreecommitdiff
path: root/plugins/pdb-ng/src/struct_grouper.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-12-18 17:14:06 -0500
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-01-11 10:36:01 -0800
commit6f75ca031aa7e8f7e1c706d1880b202137b1996f (patch)
tree1fe8e778f98e4390a1075fc402047e23f2128934 /plugins/pdb-ng/src/struct_grouper.rs
parent168a3fd34824adc9c6a606cd144219701f15cccf (diff)
[Rust] Enter more session scoped tracing spans for debug info and binary view callbacks
Diffstat (limited to 'plugins/pdb-ng/src/struct_grouper.rs')
-rw-r--r--plugins/pdb-ng/src/struct_grouper.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/pdb-ng/src/struct_grouper.rs b/plugins/pdb-ng/src/struct_grouper.rs
index 8143ff42..378d8c3b 100644
--- a/plugins/pdb-ng/src/struct_grouper.rs
+++ b/plugins/pdb-ng/src/struct_grouper.rs
@@ -15,7 +15,6 @@
use crate::type_parser::ParsedMember;
use anyhow::{anyhow, Result};
use binaryninja::confidence::{Conf, MAX_CONFIDENCE};
-use binaryninja::tracing::{debug, warn};
use binaryninja::types::{MemberAccess, MemberScope, StructureBuilder, StructureType, Type};
use std::cmp::Ordering;
use std::env;
@@ -358,7 +357,7 @@ pub fn group_structure(
apply_groups(members, structure, groups, 0);
}
Err(e) => {
- warn!("{} Could not resolve structure groups: {}", name, e);
+ tracing::warn!("{} Could not resolve structure groups: {}", name, e);
for member in members {
match (member.bitfield_position, member.bitfield_size) {
(Some(bit_pos), bit_width) => {
@@ -1189,6 +1188,6 @@ fn test_bool_modifier() {
fn log<F: FnOnce() -> D, D: Display>(msg: F) {
// println!("{}", msg());
if env::var("BN_DEBUG_PDB").is_ok() {
- debug!("{}", msg());
+ tracing::debug!("{}", msg());
}
}