From 3f2ce04ecc8f076f69c56fe8fa8938294921e638 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Fri, 22 Nov 2024 13:37:24 +0000 Subject: [PATCH] fix for #518 --- src/bt.rs | 2 +- src/bt/a2dp.rs | 3 ++- src/bt/avrc.rs | 2 +- src/bt/ble/gap.rs | 2 +- src/bt/ble/gatt/server.rs | 2 +- src/bt/gap.rs | 2 +- src/bt/hfp.rs | 2 +- src/eventloop.rs | 2 +- src/fs/fatfs.rs | 2 +- src/netif.rs | 2 +- src/private/zerocopy.rs | 2 +- src/thread.rs | 2 +- 12 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/bt.rs b/src/bt.rs index 8ba1b35803d..f7e0d8d656e 100644 --- a/src/bt.rs +++ b/src/bt.rs @@ -6,7 +6,7 @@ use core::sync::atomic::{AtomicBool, Ordering}; use alloc::boxed::Box; use alloc::sync::Arc; -use log::info; +use ::log::info; use num_enum::TryFromPrimitive; diff --git a/src/bt/a2dp.rs b/src/bt/a2dp.rs index b865737b851..04ff926b610 100644 --- a/src/bt/a2dp.rs +++ b/src/bt/a2dp.rs @@ -5,7 +5,8 @@ use core::convert::TryInto; use core::fmt::{self, Debug}; use core::marker::PhantomData; -use log::{debug, info}; +use ::log::{debug, info}; + use num_enum::TryFromPrimitive; use crate::bt::{BtClassicEnabled, BtDriver}; diff --git a/src/bt/avrc.rs b/src/bt/avrc.rs index 46e763ad908..9dace35b1c7 100644 --- a/src/bt/avrc.rs +++ b/src/bt/avrc.rs @@ -265,7 +265,7 @@ pub mod controller { use enumset::EnumSet; - use log::info; + use ::log::info; use crate::bt::{BdAddr, BtClassicEnabled, BtDriver, BtSingleton}; diff --git a/src/bt/ble/gap.rs b/src/bt/ble/gap.rs index a7e9e092562..54fd41a05d0 100644 --- a/src/bt/ble/gap.rs +++ b/src/bt/ble/gap.rs @@ -6,7 +6,7 @@ use core::{ffi::CStr, ops::BitOr}; use crate::bt::BtSingleton; use crate::sys::*; -use log::debug; +use ::log::debug; use crate::{ bt::{BdAddr, BleEnabled, BtDriver, BtStatus, BtUuid}, diff --git a/src/bt/ble/gatt/server.rs b/src/bt/ble/gatt/server.rs index 8ececc6f36f..313049425b3 100644 --- a/src/bt/ble/gatt/server.rs +++ b/src/bt/ble/gatt/server.rs @@ -2,7 +2,7 @@ use core::borrow::Borrow; use core::fmt::{self, Debug}; use core::marker::PhantomData; -use log::{debug, trace}; +use ::log::{debug, trace}; use crate::bt::{BdAddr, BleEnabled, BtDriver, BtSingleton, BtUuid}; use crate::sys::*; diff --git a/src/bt/gap.rs b/src/bt/gap.rs index f0cbbd28720..249eabef0df 100644 --- a/src/bt/gap.rs +++ b/src/bt/gap.rs @@ -18,7 +18,7 @@ use enumset::{EnumSet, EnumSetType}; use crate::sys::*; -use log::debug; +use ::log::debug; use num_enum::TryFromPrimitive; diff --git a/src/bt/hfp.rs b/src/bt/hfp.rs index 21785fd0e7d..4dbc0a9e538 100644 --- a/src/bt/hfp.rs +++ b/src/bt/hfp.rs @@ -10,7 +10,7 @@ pub mod client { use crate::sys::*; - use log::{debug, info}; + use ::log::{debug, info}; use num_enum::TryFromPrimitive; diff --git a/src/eventloop.rs b/src/eventloop.rs index 3b32e404fd5..64cd5685e1d 100644 --- a/src/eventloop.rs +++ b/src/eventloop.rs @@ -904,7 +904,7 @@ mod async_wait { use esp_idf_hal::task::asynch::Notification; - use log::debug; + use ::log::debug; use super::{EspEventDeserializer, EspEventLoop, EspEventLoopType, EspSubscription}; use crate::sys::{esp, EspError, ESP_ERR_TIMEOUT}; diff --git a/src/fs/fatfs.rs b/src/fs/fatfs.rs index 4cc744866f5..e31a3793c25 100644 --- a/src/fs/fatfs.rs +++ b/src/fs/fatfs.rs @@ -4,7 +4,7 @@ use alloc::boxed::Box; use config::{FatFsType, FormatConfiguration}; -use log::warn; +use ::log::warn; use crate::hal::sd::SdCardDriver; use crate::sys::*; diff --git a/src/netif.rs b/src/netif.rs index 3918379a5a0..02e6f84f9e8 100644 --- a/src/netif.rs +++ b/src/netif.rs @@ -960,7 +960,7 @@ where mod driver { use core::borrow::BorrowMut; - use log::debug; + use ::log::debug; use crate::handle::RawHandle; use crate::sys::*; diff --git a/src/private/zerocopy.rs b/src/private/zerocopy.rs index 0ccd55e4323..d4eb1c253a1 100644 --- a/src/private/zerocopy.rs +++ b/src/private/zerocopy.rs @@ -11,7 +11,7 @@ use alloc::sync::{Arc, Weak}; use esp_idf_hal::task::asynch::Notification; -use log::info; +use ::log::info; pub struct Receiver(Weak>) where diff --git a/src/thread.rs b/src/thread.rs index 9354e206680..b80d1916b89 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -8,7 +8,7 @@ use core::fmt::Debug; use core::marker::PhantomData; use core::mem::MaybeUninit; -use log::debug; +use ::log::debug; use crate::eventloop::{EspEventDeserializer, EspEventSource, EspSystemEventLoop}; use crate::hal::delay;