xiaoxiang781216 commented on code in PR #21451:
URL: https://github.com/apache/nuttx/pull/21451#discussion_r4467969916
##########
libs/libc/pthread/pthread_spinlock.c:
##########
@@ -193,7 +193,7 @@ int pthread_spin_lock(pthread_spinlock_t *lock)
/* An error of some kind is the only other possibility */
DEBUGASSERT(ret < 0);
- ret = -ret;
+ ret = errno;
Review Comment:
get_errno or NX_ERRNO
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]