mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 12:13:35 +08:00
POSIX: fixups for px4_log.h change
After merge from qurt branch, fixups for posix build Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
* that is supplied. Should we just depend on the bus knowing?
|
* that is supplied. Should we just depend on the bus knowing?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <px4_debug.h>
|
#include <px4_log.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
* POSIX-like API for virtual character device
|
* POSIX-like API for virtual character device
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <px4_log.h>
|
||||||
#include <px4_posix.h>
|
#include <px4_posix.h>
|
||||||
#include <px4_time.h>
|
#include <px4_time.h>
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ __END_DECLS
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PX4_DBG(...)
|
#define PX4_DBG(...)
|
||||||
|
#define PX4_DEBUG(...)
|
||||||
#define PX4_INFO(...) warnx(__VA_ARGS__)
|
#define PX4_INFO(...) warnx(__VA_ARGS__)
|
||||||
#define PX4_WARN(...) warnx(__VA_ARGS__)
|
#define PX4_WARN(...) warnx(__VA_ARGS__)
|
||||||
#define PX4_ERR(...) { warnx("ERROR file %s line %d:", __FILE__, __LINE__); warnx(__VA_ARGS__); }
|
#define PX4_ERR(...) { warnx("ERROR file %s line %d:", __FILE__, __LINE__); warnx(__VA_ARGS__); }
|
||||||
|
|||||||
Reference in New Issue
Block a user