Merge tag 'iommu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux/fpc-iii.git] / net / batman-adv / log.c
blobb7e9923b11a2bc37f1a5ae32e8ef2b7e23a5ad8b
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2010-2020 B.A.T.M.A.N. contributors:
4 * Marek Lindner
5 */
7 #include "log.h"
8 #include "main.h"
10 #include <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;