Skip to content
Snippets Groups Projects
Commit ffdc9d62 authored by Mark Charlebois's avatar Mark Charlebois
Browse files

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: default avatarMark Charlebois <charlebm@gmail.com>
parent 791d780b
No related branches found
No related tags found
No related merge requests found
Showing
with 157 additions and 116 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment