mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 13:43:33 +08:00
Debug statements included in the code.
This commit is contained in:
@@ -157,18 +157,9 @@ size_t strnlen(const char *s, size_t maxlen)
|
||||
return i;
|
||||
}
|
||||
|
||||
static void block_indefinite(void)
|
||||
{
|
||||
for (;;) {
|
||||
volatile int x = 0;
|
||||
++x;
|
||||
}
|
||||
}
|
||||
|
||||
int fprintf(FILE *stream, const char *format, ...)
|
||||
{
|
||||
PX4_ERR("Error: Calling unresolved symbol stub[%s]", __FUNCTION__);
|
||||
block_indefinite();
|
||||
PX4_ERR("Error: Calling unresolved symbol stub:[%s(%s,...)]", __FUNCTION__, format);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user