aboutsummaryrefslogtreecommitdiff
path: root/embassy-net
diff options
context:
space:
mode:
authorKrzysztof Królczyk <[email protected]>2024-11-01 15:37:47 +0100
committerKrzysztof Królczyk <[email protected]>2024-11-01 19:08:07 +0100
commitaf694d233cf1d19f1aec9b522e8ef286b82424a3 (patch)
tree51b2e88d5746eafde07f2427839b692128fba915 /embassy-net
parente93ac532aca2c699f19c43a080f2d8243e562a9a (diff)
chore: improve some log msgs
Signed-off-by: Krzysztof Królczyk <[email protected]>
Diffstat (limited to 'embassy-net')
-rw-r--r--embassy-net/src/driver_util.rs4
-rw-r--r--embassy-net/src/lib.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-net/src/driver_util.rs b/embassy-net/src/driver_util.rs
index f51641425..536f4c3d9 100644
--- a/embassy-net/src/driver_util.rs
+++ b/embassy-net/src/driver_util.rs
@@ -84,7 +84,7 @@ where
84 { 84 {
85 self.0.consume(|buf| { 85 self.0.consume(|buf| {
86 #[cfg(feature = "packet-trace")] 86 #[cfg(feature = "packet-trace")]
87 trace!("rx: {:?}", buf); 87 trace!("embassy device rx: {:02x}", buf);
88 f(buf) 88 f(buf)
89 }) 89 })
90 } 90 }
@@ -105,7 +105,7 @@ where
105 self.0.consume(len, |buf| { 105 self.0.consume(len, |buf| {
106 let r = f(buf); 106 let r = f(buf);
107 #[cfg(feature = "packet-trace")] 107 #[cfg(feature = "packet-trace")]
108 trace!("tx: {:?}", buf); 108 trace!("embassy device tx: {:02x}", buf);
109 r 109 r
110 }) 110 })
111 } 111 }
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs
index a7b7efa87..22e7358ac 100644
--- a/embassy-net/src/lib.rs
+++ b/embassy-net/src/lib.rs
@@ -391,12 +391,12 @@ impl<'d> Stack<'d> {
391 self.with(|i| i.hardware_address) 391 self.with(|i| i.hardware_address)
392 } 392 }
393 393
394 /// Get whether the link is up. 394 /// Check whether the link is up.
395 pub fn is_link_up(&self) -> bool { 395 pub fn is_link_up(&self) -> bool {
396 self.with(|i| i.link_up) 396 self.with(|i| i.link_up)
397 } 397 }
398 398
399 /// Get whether the network stack has a valid IP configuration. 399 /// Check whether the network stack has a valid IP configuration.
400 /// This is true if the network stack has a static IP configuration or if DHCP has completed 400 /// This is true if the network stack has a static IP configuration or if DHCP has completed
401 pub fn is_config_up(&self) -> bool { 401 pub fn is_config_up(&self) -> bool {
402 let v4_up; 402 let v4_up;