Skip to content

Commit

Permalink
Trace logs for amdgpu.ids
Browse files Browse the repository at this point in the history
  • Loading branch information
nokyan committed Dec 24, 2024
1 parent 27b3b01 commit 9c9f594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/gpu/amd.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::{bail, Result};
use lazy_regex::{lazy_regex, Lazy, Regex};
use log::{debug, warn};
use log::{debug, trace, warn};
use process_data::pci_slot::PciSlot;

use std::{collections::HashMap, path::PathBuf, sync::LazyLock, time::Instant};
Expand Down Expand Up @@ -79,6 +79,7 @@ impl AmdGpu {
let device_id = u16::from_str_radix(device_id.as_str().trim(), 16).unwrap();
let revision = u8::from_str_radix(revision.as_str().trim(), 16).unwrap();
let name = name.as_str().into();
trace!("Found {name} ({device_id:04x}, rev {revision:02x})");
map.insert((device_id, revision), name);
}
}
Expand Down

0 comments on commit 9c9f594

Please sign in to comment.