11 Commits

Author SHA1 Message Date
Lorenz Meier
2cfcf3402e Systemlib: Header cleanup 2016-12-27 21:00:51 +01: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
3b5feafef4 err: add missing include for exit 2016-06-07 22:10:56 +02:00
Julian Oes
04083cff3d err: we need to use exit on NuttX
px4_task_exit doesn't seem to be available for NuttX, so it had no
effect and broke the init because the return values of the tasks were
wrong.
2016-06-07 22:10:56 +02:00
Julian Oes
c916ee7357 err: astyle prefers it different 2016-06-07 22:10:56 +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
Beat Küng
215aa78f30 fix coding style for gps drivers 2016-04-11 11:23:01 +02:00
Beat Küng
ec819737c1 systemlib: make err() & errx() work for POSIX 2016-04-11 11:23:01 +02:00
Mark Charlebois
ffdc9d629c POSIX: Improved logging
The warnx and warn calls map to PX4_WARN.
Calls to errx or err genrtate a compile error.

The px4_log.h file implements a new log format:

For DEBUG and INFO:
<level> <msg>

For ERROR and WARN:
<level> <msg> (file filepath line linenum)

The verbosity can be changed by setting the macro to use
either linux_log or linux_log_verbose in px4_log.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-19 09:19:24 -07:00
Lorenz Meier
e6a7dc7a3f Fixed unit test usage of visibility macros 2015-02-02 21:03:19 +01:00
Lorenz Meier
13fc670386 Moved last libs, drivers and headers, cleaned up IO build 2013-04-28 09:54:11 +02:00