Debug statements included in the code.

This commit is contained in:
jwilson
2016-02-19 16:59:49 +01:00
committed by Julian Oes
parent 8f26735255
commit 2b4b9aa103
2 changed files with 21 additions and 10 deletions
+1 -10
View File
@@ -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;
}