diff options
author | fnafnio <fabiopungg@gmail.com> | 2021-02-24 08:30:22 +0100 |
---|---|---|
committer | fnafnio <fabiopungg@gmail.com> | 2021-02-24 08:30:22 +0100 |
commit | 0bd03fbcdaa0f7d626ce66a40ee2f81fe901301b (patch) | |
tree | 55a82fe477af54b6c2f433b08304dae1cfe99b02 /examples | |
parent | 929ce945ef0c2a351b161769b7d04bb9a7b02d5c (diff) | |
download | nrf-softdevice-0bd03fbcdaa0f7d626ce66a40ee2f81fe901301b.zip |
updated defmt and defmt-rtt to 0.2.0
use :x display hint where it makes sense
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/src/bin/ble_l2cap_central.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/Cargo.toml b/examples/Cargo.toml index caa6dc5..95a6d48 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -28,7 +28,7 @@ embassy-nrf = { version = "0.1.0", features = [ "defmt", "52840" ]} cortex-m = { version = "0.6.4" } cortex-m-rt = "0.6.13" cortex-m-rtic = { version = "0.5.5", optional = true } -defmt = "0.1.3" +defmt = "0.2.0" nrf-softdevice-defmt-rtt = { path = "../nrf-softdevice-defmt-rtt", version = "0.1.0" } panic-probe = "0.1.0" nrf52840-hal = { version = "0.12.0" } diff --git a/examples/src/bin/ble_l2cap_central.rs b/examples/src/bin/ble_l2cap_central.rs index 7440bd2..9ac6a86 100644 --- a/examples/src/bin/ble_l2cap_central.rs +++ b/examples/src/bin/ble_l2cap_central.rs @@ -104,7 +104,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 {:?}", ptr as u32); + info!("allocate {:x}", ptr as u32); NonNull::new(ptr) } @@ -112,12 +112,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 {:?}", ptr as u32); + info!("into_raw_parts {:x}", ptr as u32); (unwrap!(NonNull::new(ptr)), len) } unsafe fn from_raw_parts(ptr: NonNull<u8>, len: usize) -> Self { - info!("from_raw_parts {:?}", ptr.as_ptr() as u32); + info!("from_raw_parts {:x}", ptr.as_ptr() as u32); Self(Vec::from_raw_parts(ptr.as_ptr(), len, Self::MTU)) } } |