summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_l2cap_peripheral.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-02-26 00:43:20 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-02-26 00:43:20 +0100
commitfe0d6510a4aa767b0c2e7b5b0d01f8b93b29e5e5 (patch)
tree91a92da5dfc9e22cee6164862760797c3c1d9178 /examples/src/bin/ble_l2cap_peripheral.rs
parenteb0994c1a0824d385c0bcbd378b302ca697fb575 (diff)
downloadnrf-softdevice-fe0d6510a4aa767b0c2e7b5b0d01f8b93b29e5e5.zip
Updat examples to defmt 0.2
Diffstat (limited to 'examples/src/bin/ble_l2cap_peripheral.rs')
-rw-r--r--examples/src/bin/ble_l2cap_peripheral.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs
index 54716af..3418cc7 100644
--- a/examples/src/bin/ble_l2cap_peripheral.rs
+++ b/examples/src/bin/ble_l2cap_peripheral.rs
@@ -62,7 +62,7 @@ async fn bluetooth_task(sd: &'static Softdevice) {
loop {
let pkt = unwrap!(ch.rx().await);
- info!("rx: {:[u8]}", pkt.0);
+ info!("rx: {:x}", pkt.0);
}
futures::future::pending::<()>().await;
@@ -78,7 +78,7 @@ impl l2cap::Packet for Packet {
let mut v = Vec::with_capacity(Self::MTU);
let ptr = v.as_mut_ptr();
mem::forget(v);
- info!("allocate {:u32}", ptr as u32);
+ info!("allocate {}", ptr as u32);
NonNull::new(ptr)
}
@@ -86,12 +86,12 @@ impl l2cap::Packet for Packet {
let ptr = self.0.as_mut_ptr();
let len = self.0.len();
mem::forget(self);
- info!("into_raw_parts {:u32}", ptr as u32);
+ info!("into_raw_parts {}", ptr as u32);
(unwrap!(NonNull::new(ptr)), len)
}
unsafe fn from_raw_parts(ptr: NonNull<u8>, len: usize) -> Self {
- info!("from_raw_parts {:u32}", ptr.as_ptr() as u32);
+ info!("from_raw_parts {}", ptr.as_ptr() as u32);
Self(Vec::from_raw_parts(ptr.as_ptr(), len, Self::MTU))
}
}