diff --git a/sdk/lib/driver/component/rust/src/context.rs b/sdk/lib/driver/component/rust/src/context.rs
index 450e4c2..912d6f5 100644
--- a/sdk/lib/driver/component/rust/src/context.rs
+++ b/sdk/lib/driver/component/rust/src/context.rs
@@ -121,8 +121,8 @@
}
};
- if let Err(e) = diagnostics_log::initialize(
- diagnostics_log::PublishOptions::default()
+ if let Err(e) = driver_diagnostics_log::initialize(
+ driver_diagnostics_log::PublishOptions::default()
.use_log_sink(log_client)
.tags(&["driver", driver_name]),
) {
diff --git a/src/connectivity/wlan/drivers/wlansoftmac/rust_driver/c-binding/src/lib.rs b/src/connectivity/wlan/drivers/wlansoftmac/rust_driver/c-binding/src/lib.rs
index d191170..8646521 100644
--- a/src/connectivity/wlan/drivers/wlansoftmac/rust_driver/c-binding/src/lib.rs
+++ b/src/connectivity/wlan/drivers/wlansoftmac/rust_driver/c-binding/src/lib.rs
@@ -5,7 +5,7 @@
//! C bindings for wlansoftmac-rust crate.
#![deny(unsafe_op_in_unsafe_fn)]
-use diagnostics_log::PublishOptions;
+use driver_diagnostics_log::PublishOptions;
use fuchsia_async::LocalExecutor;
use log::{error, info};
use std::ffi::c_void;
@@ -81,10 +81,10 @@
return;
}
// Initialize logging with a tag that can be used to filter for forwarding to console
- diagnostics_log::initialize_sync(
+ driver_diagnostics_log::initialize_sync(
PublishOptions::default()
.tags(&["wlan"])
- .enable_metatag(diagnostics_log::Metatag::Target),
+ .enable_metatag(driver_diagnostics_log::Metatag::Target),
);
});
diff --git a/src/connectivity/wlan/lib/mlme/fullmac/src/logger.rs b/src/connectivity/wlan/lib/mlme/fullmac/src/logger.rs
index 9818598..d47010ee 100644
--- a/src/connectivity/wlan/lib/mlme/fullmac/src/logger.rs
+++ b/src/connectivity/wlan/lib/mlme/fullmac/src/logger.rs
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-use diagnostics_log::PublishOptions;
+use driver_diagnostics_log::PublishOptions;
use std::sync::Once;
static LOGGER_ONCE: Once = Once::new();
@@ -15,10 +15,10 @@
// Initialize logging with a tag that can be used to filter for forwarding to console
// Ignore failures as they might occur due to previously installed logger by the driver
// host.
- if let Err(e) = diagnostics_log::initialize(
+ if let Err(e) = driver_diagnostics_log::initialize(
PublishOptions::default()
.tags(&["wlan"])
- .enable_metatag(diagnostics_log::Metatag::Target),
+ .enable_metatag(driver_diagnostics_log::Metatag::Target),
) {
eprintln!("Error initializing logging at driver startup: {e}");
}
diff --git a/src/lib/diagnostics/log/rust/BUILD.gn b/src/lib/diagnostics/log/rust/BUILD.gn
index 0592b14..f763610 100644
--- a/src/lib/diagnostics/log/rust/BUILD.gn
+++ b/src/lib/diagnostics/log/rust/BUILD.gn
@@ -68,7 +68,7 @@
# support. This exists mostly to support driver libraries that don't use
# this feature are forbidden from linking the symbol zx_take_startup_handle.
rustc_library("no_startup_handle") {
- name = "diagnostics_log"
+ name = "driver_diagnostics_log"
edition = "2024"
deps = LIB_DEPS
sources = LIB_SOURCES