mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 06:13:35 +08:00
require MODULE_NAME
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#define MODULE_NAME "px4"
|
||||
|
||||
extern "C" {
|
||||
|
||||
${builtin_apps_decl_string}
|
||||
|
||||
@@ -50,6 +50,7 @@ if (NOT "${OS}" MATCHES "nuttx")
|
||||
work_queue.c
|
||||
work_thread.c
|
||||
)
|
||||
target_compile_definitions(work_queue PRIVATE MODULE_NAME="work_queue")
|
||||
add_dependencies(work_queue prebuild_targets)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -168,11 +168,6 @@ __END_DECLS
|
||||
#define __px4__log_printcond(cond, ...) if (cond) printf(__VA_ARGS__)
|
||||
#define __px4__log_printline(level, ...) printf(__VA_ARGS__)
|
||||
|
||||
|
||||
#ifndef MODULE_NAME
|
||||
#define MODULE_NAME "Unknown"
|
||||
#endif
|
||||
|
||||
#define __px4__log_timestamp_fmt "%-10" PRIu64 " "
|
||||
#define __px4__log_timestamp_arg ,hrt_absolute_time()
|
||||
#define __px4__log_level_fmt "%-5s "
|
||||
|
||||
Reference in New Issue
Block a user