From dbc6964f8851ab9a54b55bd2620d5e1096e30f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Sun, 26 Feb 2023 17:19:18 +0100 Subject: [PATCH] example: pool: Do not print the addr Unstable and prone to fail CI --- ci/expected/pool.run | 2 -- examples/pool.rs | 12 ++++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/ci/expected/pool.run b/ci/expected/pool.run index 81f79d41e9..e69de29bb2 100644 --- a/ci/expected/pool.run +++ b/ci/expected/pool.run @@ -1,2 +0,0 @@ -bar(0x20000088) -foo(0x2000010c) diff --git a/examples/pool.rs b/examples/pool.rs index ab76370e71..4c551bef06 100644 --- a/examples/pool.rs +++ b/examples/pool.rs @@ -20,7 +20,7 @@ pool!(P: [u8; 128]); #[app(device = lm3s6965, dispatchers = [SSI0, QEI0])] mod app { use crate::{Box, Pool}; - use cortex_m_semihosting::{debug, hprintln}; + use cortex_m_semihosting::debug; use lm3s6965::Interrupt; // Import the memory pool into scope @@ -57,19 +57,15 @@ mod app { } #[task] - fn foo(_: foo::Context, x: Box

) { - hprintln!("foo({:?})", x.as_ptr()); - + fn foo(_: foo::Context, _x: Box

) { // explicitly return the block to the pool - drop(x); + drop(_x); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } #[task(priority = 2)] - fn bar(_: bar::Context, x: Box

) { - hprintln!("bar({:?})", x.as_ptr()); - + fn bar(_: bar::Context, _x: Box

) { // this is done automatically so we can omit the call to `drop` // drop(x); }