mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
Enabled printf-stdarg on all targets, implemented vsnprintf() (needed for logging)
This commit is contained in:
parent
6031200aea
commit
9dbac5d060
@ -246,6 +246,12 @@ int snprintf(char *buf, size_t count, const char *format, ...)
|
|||||||
return print(count, &buf, format, args);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
@ -68,7 +68,7 @@ ifndef TESTAPP
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
## Misc library functions
|
## Misc library functions
|
||||||
SRC += $(FLIGHTLIB)/printf2.c
|
#SRC += $(FLIGHTLIB)/printf2.c
|
||||||
SRC += $(FLIGHTLIB)/WorldMagModel.c
|
SRC += $(FLIGHTLIB)/WorldMagModel.c
|
||||||
|
|
||||||
## UAVObjects
|
## UAVObjects
|
||||||
|
@ -103,6 +103,7 @@ SRC += $(FLIGHTLIB)/sanitycheck.c
|
|||||||
SRC += $(FLIGHTLIB)/CoordinateConversions.c
|
SRC += $(FLIGHTLIB)/CoordinateConversions.c
|
||||||
SRC += $(MATHLIB)/sin_lookup.c
|
SRC += $(MATHLIB)/sin_lookup.c
|
||||||
SRC += $(MATHLIB)/pid.c
|
SRC += $(MATHLIB)/pid.c
|
||||||
|
SRC += $(FLIGHTLIB)/printf-stdarg.c
|
||||||
|
|
||||||
## Modules
|
## Modules
|
||||||
SRC += $(foreach mod, $(MODULES), $(sort $(wildcard $(OPMODULEDIR)/$(mod)/*.c)))
|
SRC += $(foreach mod, $(MODULES), $(sort $(wildcard $(OPMODULEDIR)/$(mod)/*.c)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user