// SPDX-License-Identifier: GPL-2.01/* Copyright (C) B.A.T.M.A.N. contributors:2*3* Marek Lindner4*/56#include "log.h"7#include "main.h"89#include <linux/stdarg.h>1011#include "trace.h"1213/**14* batadv_debug_log() - Add debug log entry15* @bat_priv: the bat priv with all the mesh interface information16* @fmt: format string17*18* Return: 0 on success or negative error number in case of failure19*/20int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...)21{22struct va_format vaf;23va_list args;2425va_start(args, fmt);2627vaf.fmt = fmt;28vaf.va = &args;2930trace_batadv_dbg(bat_priv, &vaf);3132va_end(args);3334return 0;35}363738