mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 20:39:05 +08:00
delete px4_includes.h header and update boards/ to use syslog
This commit is contained in:
parent
376e078c24
commit
2ffb49b734
@ -60,6 +60,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <px4_time.h>
|
||||
#include <px4_log.h>
|
||||
|
||||
@ -148,7 +148,7 @@ int px4_sem_timedwait(px4_sem_t *s, const struct timespec *abstime)
|
||||
const unsigned NAMELEN = 32;
|
||||
char thread_name[NAMELEN] = {};
|
||||
(void)pthread_getname_np(pthread_self(), thread_name, NAMELEN);
|
||||
PX4_WARN("%s: px4_sem_timedwait failure: ret: %d, %s", thread_name, ret, strerror(ret));
|
||||
PX4_WARN("%s: px4_sem_timedwait failure: ret: %d", thread_name, ret);
|
||||
}
|
||||
|
||||
int mret = pthread_mutex_unlock(&(s->lock));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user