logging: backend: net: avoid automatic enabling
Avoid automatic enabling of the syslog backend by the logging subsystem. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
parent
03c557b004
commit
8ce499665b
1 changed files with 9 additions and 0 deletions
|
@ -338,9 +338,18 @@ static void panic(struct log_backend const *const backend)
|
|||
panic_mode = true;
|
||||
}
|
||||
|
||||
/* After initialization of the logger, this function avoids
|
||||
* the logger subsys to enable it.
|
||||
*/
|
||||
static int backend_ready(const struct log_backend *const backend)
|
||||
{
|
||||
return log_backend_is_active(backend) ? 0 : -EAGAIN;
|
||||
}
|
||||
|
||||
const struct log_backend_api log_backend_net_api = {
|
||||
.panic = panic,
|
||||
.init = init_net,
|
||||
.is_ready = backend_ready,
|
||||
.process = process,
|
||||
.format_set = format_set,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue