14 Commits

Author SHA1 Message Date
Peter Duerr
453937a89a Fix va_arg calls (always call va_end)
From the manpage: "Each invocation of va_start() must be matched by a
corresponding invocation of va_end() in the same function."
2017-08-07 22:05:54 +02:00
David Sidrane
056bd5527d New NuttX debug API 2016-12-21 08:34:21 +01:00
Lucas De Marchi
18330f7ab7 Move __STDC_FORMAT_MACROS to build system
__STDC_FORMAT_MACROS changes the behavior of inttypes.h to allow
defining format macros for printf-like functions. It needs to be defined
before any include is done, otherwise due to include chains and header
guards it may not take effect.

Instead of having to define it everywhere it is used, move the define to the
build system. Also update ecl and DriverFramework submodules to deal with the
changed definitions.
2016-07-10 16:31:36 +02:00
Beat Küng
fcab80bfee getprogname: rename to px4_get_taskname 2016-06-09 15:22:29 +02:00
Beat Küng
9f5adb2356 getprogname: re-enable on NuttX & move to px4_tasks.h 2016-06-09 15:22:29 +02:00
Julian Oes
f68a6eb42c err/px4_log: switch everything to static function
Instead of having separate log functions for NuttX and POSIX, this now
switches everything to px4_log.h and PX4_INFO/WARN/ERR/DEBUG.

Also, the call mostly used is now a static inline function instead of a
macro which lead to a big increase in flash size for STM32.
2016-06-07 22:10:56 +02:00
James Goppert
ed876b95c3 Added stdc_format_macros to err. 2015-09-24 16:54:45 -04:00
Lorenz Meier
fba569f12c Fix code style for system lib 2015-09-06 11:59:50 +02:00
Mark Charlebois
9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Lorenz Meier
76e84e017f VA_ARGS fixes from coverity 2015-01-21 08:58:47 +01:00
Lorenz Meier
04cca73baa Hotfix of the Hotfix 8) 2014-07-03 11:26:26 +02:00
Lorenz Meier
7be2e0f136 Hotfix: Typo in disabled code path 2014-07-03 11:18:00 +02:00
Lorenz Meier
63d460160c Adjusted to renaming of TCB in NuttX 2013-06-01 12:00:33 +02:00
Lorenz Meier
13fc670386 Moved last libs, drivers and headers, cleaned up IO build 2013-04-28 09:54:11 +02:00