zephyr/tests/subsys/logging/logger-hook
Flavio Ceolin 0866d18d03 irq: Fix irq_lock api usage
irq_lock returns an unsigned int, though, several places was using
signed int. This commit fix this behaviour.

In order to avoid this error happens again, a coccinelle script was
added and can be used to check violations.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2018-08-16 19:47:41 -07:00
..
src irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
CMakeLists.txt
prj.conf
README.txt
testcase.yaml

Title: Logger application hook sample

Description:

A simple example on how to use logger hook in order to redirect the logger
output to various backends.
In this case, the logger is sending the output to ringbuf,
logger output can be sent to a driver such as UART / USIF etc. as well.

--------------------------------------------------------------------------------

Building and Running Project:

This project outputs to the console.  It can be built and executed on QEMU as
follows:

    make run

--------------------------------------------------------------------------------

Troubleshooting:

Problems caused by out-dated project information can be addressed by
issuing one of the following commands then rebuilding the project:

    make clean          # discard results of previous builds
                        # but keep existing configuration info
or
    make pristine       # discard results of previous builds
                        # and restore pre-defined configuration info

--------------------------------------------------------------------------------

Sample Output:

[syslogger] [ERR] main: SYS LOG ERR is ACTIVE
[syslogger] [WRN] main: SYS LOG WRN is ACTIVE
[syslogger] [INF] main: SYS LOG INF is ACTIVE