mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 09:20:35 +08:00
getprogname: re-enable on NuttX & move to px4_tasks.h
This commit is contained in:
@@ -62,17 +62,6 @@ extern int lib_lowvprintf(const char *fmt, va_list ap);
|
||||
|
||||
// XXX not used anymore
|
||||
#if 0
|
||||
const char *
|
||||
getprogname(void)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
FAR struct tcb_s *thisproc = sched_self();
|
||||
|
||||
return thisproc->name;
|
||||
#else
|
||||
return "app";
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
warnerr_core(int errcode, const char *fmt, va_list args)
|
||||
|
||||
@@ -74,8 +74,6 @@
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
__EXPORT const char *getprogname(void);
|
||||
|
||||
|
||||
#ifdef __PX4_NUTTX
|
||||
#define EXIT(eval) exit(eval)
|
||||
|
||||
Reference in New Issue
Block a user