1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-28 06:24:10 +01:00

Enabled printf-stdarg on all targets, implemented vsnprintf() (needed for logging)

This commit is contained in:
Corvus Corax 2013-11-17 18:49:50 +01:00
parent 6031200aea
commit 9dbac5d060
3 changed files with 8 additions and 1 deletions

View File

@ -246,6 +246,12 @@ int snprintf(char *buf, size_t count, const char *format, ...)
return print(count, &buf, format, args);
}
// TK: added for alternative parameter passing
int vsnprintf(char *buf, size_t count, const char *format, va_list args)
{
return print(count, &buf, format, args);
}
/**
* @}
*/

View File

@ -68,7 +68,7 @@ ifndef TESTAPP
#endif
## Misc library functions
SRC += $(FLIGHTLIB)/printf2.c
#SRC += $(FLIGHTLIB)/printf2.c
SRC += $(FLIGHTLIB)/WorldMagModel.c
## UAVObjects

View File

@ -103,6 +103,7 @@ SRC += $(FLIGHTLIB)/sanitycheck.c
SRC += $(FLIGHTLIB)/CoordinateConversions.c
SRC += $(MATHLIB)/sin_lookup.c
SRC += $(MATHLIB)/pid.c
SRC += $(FLIGHTLIB)/printf-stdarg.c
## Modules
SRC += $(foreach mod, $(MODULES), $(sort $(wildcard $(OPMODULEDIR)/$(mod)/*.c)))