Skip to content

Commit dbc6964

Browse files
committed
example: pool: Do not print the addr
Unstable and prone to fail CI
1 parent d43c2b6 commit dbc6964

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

ci/expected/pool.run

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
bar(0x20000088)
2-
foo(0x2000010c)

examples/pool.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pool!(P: [u8; 128]);
2020
#[app(device = lm3s6965, dispatchers = [SSI0, QEI0])]
2121
mod app {
2222
use crate::{Box, Pool};
23-
use cortex_m_semihosting::{debug, hprintln};
23+
use cortex_m_semihosting::debug;
2424
use lm3s6965::Interrupt;
2525

2626
// Import the memory pool into scope
@@ -57,19 +57,15 @@ mod app {
5757
}
5858

5959
#[task]
60-
fn foo(_: foo::Context, x: Box<P>) {
61-
hprintln!("foo({:?})", x.as_ptr());
62-
60+
fn foo(_: foo::Context, _x: Box<P>) {
6361
// explicitly return the block to the pool
64-
drop(x);
62+
drop(_x);
6563

6664
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
6765
}
6866

6967
#[task(priority = 2)]
70-
fn bar(_: bar::Context, x: Box<P>) {
71-
hprintln!("bar({:?})", x.as_ptr());
72-
68+
fn bar(_: bar::Context, _x: Box<P>) {
7369
// this is done automatically so we can omit the call to `drop`
7470
// drop(x);
7571
}

0 commit comments

Comments
 (0)