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 <anchao@xiaomi.com>
This commit is contained in:
chao.an 2021-11-30 22:26:09 +08:00 committed by Xiang Xiao
parent 83edd2fbba
commit 0161da4415

View File

@ -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;
}
}