Merge tag 'hwmon-for-v6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / net / batman-adv / log.c
blob7a93a1e94c40eb4e26c9ed3c6c4068d97830aa05
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) B.A.T.M.A.N. contributors:
4 * Marek Lindner
5 */
7 #include "log.h"
8 #include "main.h"
10 #include <linux/stdarg.h>
12 #include "trace.h"
14 /**
15 * batadv_debug_log() - Add debug log entry
16 * @bat_priv: the bat priv with all the soft interface information
17 * @fmt: format string
19 * Return: 0 on success or negative error number in case of failure
21 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...)
23 struct va_format vaf;
24 va_list args;
26 va_start(args, fmt);
28 vaf.fmt = fmt;
29 vaf.va = &args;
31 trace_batadv_dbg(bat_priv, &vaf);
33 va_end(args);
35 return 0;