You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2020/03/11 12:26:00 UTC

[mynewt-mcumgr] branch master updated: kconfig: Fix broken ref. to THREAD_STACK_INFO from Zephyr

This is an automated email from the ASF dual-hosted git repository.

utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git


The following commit(s) were added to refs/heads/master by this push:
     new c4716db  kconfig: Fix broken ref. to THREAD_STACK_INFO from Zephyr
c4716db is described below

commit c4716dbc0bac6da9c1bc4b7fb375e445d4ebc7ee
Author: Ulf Magnusson <ul...@gmail.com>
AuthorDate: Sat Jan 25 05:41:51 2020 +0100

    kconfig: Fix broken ref. to THREAD_STACK_INFO from Zephyr
    
    The CONFIG_ prefix was missing.
    
    Found with a work-in-progress scripts/kconfig/lint.py check.
    
    This symbol is defined in kernel/Kconfig in Zephyr.
    
    Signed-off-by: Ulf Magnusson <Ul...@nordicsemi.no>
---
 cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c b/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c
index 37f3d17..b650259 100644
--- a/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c
+++ b/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c
@@ -67,7 +67,7 @@ os_mgmt_impl_task_info(int idx, struct os_mgmt_task_info *out_info)
     out_info->oti_prio = thread->base.prio;
     out_info->oti_taskid = idx;
     out_info->oti_state = thread->base.thread_state;
-#ifdef THREAD_STACK_INFO
+#ifdef CONFIG_THREAD_STACK_INFO
     out_info->oti_stksize = thread->stack_info.size / 4;
 #endif