mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00

The way how the virtual interface is called inside the batman-adv source code is not consistent. The genl headers call it meshif and the rest of the code calls is (mostly) softif. The genl definitions cannot be touched because they are part of the UAPI. But the rest of the batman-adv code can be touched to have a consistent name again. The bulk of the renaming was done using sed -i -e 's/soft\(-\|\_\| \|\)i\([nf]\)/mesh\1i\2/g' \ -e 's/SOFT\(-\|\_\| \|\)I\([NF]\)/MESH\1I\2/g' and then it was adjusted slightly when proofreading the changes. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
37 lines
637 B
C
37 lines
637 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright (C) B.A.T.M.A.N. contributors:
|
|
*
|
|
* Marek Lindner
|
|
*/
|
|
|
|
#include "log.h"
|
|
#include "main.h"
|
|
|
|
#include <linux/stdarg.h>
|
|
|
|
#include "trace.h"
|
|
|
|
/**
|
|
* batadv_debug_log() - Add debug log entry
|
|
* @bat_priv: the bat priv with all the mesh interface information
|
|
* @fmt: format string
|
|
*
|
|
* Return: 0 on success or negative error number in case of failure
|
|
*/
|
|
int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...)
|
|
{
|
|
struct va_format vaf;
|
|
va_list args;
|
|
|
|
va_start(args, fmt);
|
|
|
|
vaf.fmt = fmt;
|
|
vaf.va = &args;
|
|
|
|
trace_batadv_dbg(bat_priv, &vaf);
|
|
|
|
va_end(args);
|
|
|
|
return 0;
|
|
}
|