drivers/noteram: fix compile error
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
parent
7e89ff5d11
commit
001de69be9
@ -696,6 +696,7 @@ noteram_dump_find_task_context(FAR struct noteram_dump_context_s *ctx,
|
|||||||
|
|
||||||
static const char *get_taskname(pid_t pid)
|
static const char *get_taskname(pid_t pid)
|
||||||
{
|
{
|
||||||
|
#if CONFIG_DRIVERS_NOTE_TASKNAME_BUFSIZE > 0
|
||||||
FAR const char *taskname;
|
FAR const char *taskname;
|
||||||
|
|
||||||
taskname = note_get_taskname(pid);
|
taskname = note_get_taskname(pid);
|
||||||
@ -703,6 +704,7 @@ static const char *get_taskname(pid_t pid)
|
|||||||
{
|
{
|
||||||
return taskname;
|
return taskname;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return "<noname>";
|
return "<noname>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user