You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/12/09 06:14:36 UTC
[incubator-nuttx] branch master updated: sched/dumpstack: raise the stack dump level to emergency
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 0161da4 sched/dumpstack: raise the stack dump level to emergency
0161da4 is described below
commit 0161da44155634e0dd3166162be6a87480847314
Author: chao.an <an...@xiaomi.com>
AuthorDate: Tue Nov 30 22:26:09 2021 +0800
sched/dumpstack: raise the stack dump level to emergency
since sometimes dumpstack will be used in extreme situations(eg. assert)
Signed-off-by: chao.an <an...@xiaomi.com>
---
libs/libc/sched/sched_dumpstack.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libs/libc/sched/sched_dumpstack.c b/libs/libc/sched/sched_dumpstack.c
index ad8355b..39d2e0e 100644
--- a/libs/libc/sched/sched_dumpstack.c
+++ b/libs/libc/sched/sched_dumpstack.c
@@ -69,8 +69,7 @@ void sched_dumpstack(pid_t tid)
DUMP_FORMAT, DUMP_WIDTH, address[i]);
if (i == size - 1 || ret % DUMP_LINESIZE == 0)
{
- syslog(LOG_INFO, "[BackTrace|%2d|%d]: %s\n",
- tid, i / DUMP_NITEM, line);
+ syslog(LOG_EMERG, "backtrace|%2d: %s\n", tid, line);
ret = 0;
}
}