From 770cc2ffeb1803ad3859d6ba90c895180a4e07d7 Mon Sep 17 00:00:00 2001 From: shaojinchun Date: Tue, 17 Sep 2019 11:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9mempool=E4=BD=BF=E7=94=A8rt?= =?UTF-8?q?=5Flist=5Ffor=5Feach=E5=AE=8F=E8=BF=9B=E8=A1=8C=E9=81=8D?= =?UTF-8?q?=E5=8E=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/finsh/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index f8b774bd6f..a283c4f2c5 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -691,7 +691,7 @@ long list_mempool(void) mp = (struct rt_mempool *)obj; suspend_thread_count = 0; - for (node = mp->suspend_thread.next; node != &mp->suspend_thread; node = node->next) + rt_list_for_each(node, &mp->suspend_thread) { suspend_thread_count++; }