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

xiaoxiang pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 001de69be9a177a08adae0a193f4389ee2d6264c
Author: xuxingliang <[email protected]>
AuthorDate: Wed Jul 10 10:58:28 2024 +0800

    drivers/noteram: fix compile error
    
    Signed-off-by: xuxingliang <[email protected]>
    Signed-off-by: Neo Xu <[email protected]>
---
 drivers/note/noteram_driver.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/note/noteram_driver.c b/drivers/note/noteram_driver.c
index 0a1c63a9f5..c3897d6012 100644
--- a/drivers/note/noteram_driver.c
+++ b/drivers/note/noteram_driver.c
@@ -696,6 +696,7 @@ noteram_dump_find_task_context(FAR struct 
noteram_dump_context_s *ctx,
 
 static const char *get_taskname(pid_t pid)
 {
+#if CONFIG_DRIVERS_NOTE_TASKNAME_BUFSIZE > 0
   FAR const char *taskname;
 
   taskname = note_get_taskname(pid);
@@ -703,6 +704,7 @@ static const char *get_taskname(pid_t pid)
     {
       return taskname;
     }
+#endif
 
   return "<noname>";
 }

Reply via email to