Linux Audio

Check our new training course

Embedded Linux Audio

Check our new training course
with Creative Commons CC-BY-SA
lecture materials

Bootlin logo

Elixir Cross Referencer

Loading...
/*
 * Copyright (c) 2016 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <logging/sys_log.h>

void syslog_hook_default(const char *fmt, ...)
{
	(void)(fmt);  /* Prevent warning about unused argument */
}

void (*syslog_hook)(const char *fmt, ...) = syslog_hook_default;

void syslog_hook_install(void (*hook)(const char *, ...))
{
	syslog_hook = hook;
}