From 9c9f594a60b31f44f72f97699e27810dee2386da Mon Sep 17 00:00:00 2001 From: nokyan Date: Tue, 24 Dec 2024 09:34:43 +0100 Subject: [PATCH] Trace logs for amdgpu.ids --- src/utils/gpu/amd.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/gpu/amd.rs b/src/utils/gpu/amd.rs index a2676a5a..5e029055 100644 --- a/src/utils/gpu/amd.rs +++ b/src/utils/gpu/amd.rs @@ -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}; @@ -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); } }