pkarashchenko commented on code in PR #6435: URL: https://github.com/apache/incubator-nuttx/pull/6435#discussion_r897533709
########## drivers/syslog/syslog_device.c: ########## @@ -169,15 +150,7 @@ static inline int syslog_dev_takesem(FAR struct syslog_dev_s *syslog_dev) static inline void syslog_dev_givesem(FAR struct syslog_dev_s *syslog_dev) { -#ifdef CONFIG_DEBUG_ASSERTIONS - pid_t me = getpid(); - DEBUGASSERT(syslog_dev->sl_holder == me); Review Comment: The other option was to use `DEBUGVERIFY(nxrmutex_unlock(&syslog_dev->sl_lock));` -- 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