![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 /* Copyright (C) B.A.T.M.A.N. contributors: 0003 * 0004 * Marek Lindner 0005 */ 0006 0007 #include "log.h" 0008 #include "main.h" 0009 0010 #include <linux/stdarg.h> 0011 0012 #include "trace.h" 0013 0014 /** 0015 * batadv_debug_log() - Add debug log entry 0016 * @bat_priv: the bat priv with all the soft interface information 0017 * @fmt: format string 0018 * 0019 * Return: 0 on success or negative error number in case of failure 0020 */ 0021 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...) 0022 { 0023 struct va_format vaf; 0024 va_list args; 0025 0026 va_start(args, fmt); 0027 0028 vaf.fmt = fmt; 0029 vaf.va = &args; 0030 0031 trace_batadv_dbg(bat_priv, &vaf); 0032 0033 va_end(args); 0034 0035 return 0; 0036 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |