pkarashchenko commented on code in PR #10858:
URL: https://github.com/apache/nuttx/pull/10858#discussion_r1350069905


##########
sched/misc/assert.c:
##########
@@ -555,11 +555,21 @@ void _assert(FAR const char *filename, int linenum,
              FAR const char *msg, FAR void *regs)
 {
   FAR struct tcb_s *rtcb = running_task();
+#if CONFIG_TASK_NAME_SIZE > 0
+  FAR struct tcb_s *ptcb = NULL;
+#endif
   struct panic_notifier_s notifier_data;
   struct utsname name;
   bool fatal = true;
   int flags;
 
+#if CONFIG_TASK_NAME_SIZE > 0
+  if (rtcb->group && !(rtcb->flags & TCB_FLAG_TTYPE_KERNEL))

Review Comment:
   Optional
   ```suggestion
     if (rtcb->group && (rtcb->flags & TCB_FLAG_TTYPE_KERNEL) == 0)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to