Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d3a547be
Commit
d3a547be
authored
May 14, 2011
by
Sven Eckelmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
batman-adv: Annotate functions with format strings
Signed-off-by:
Sven Eckelmann
<
sven@narfation.org
>
parent
1b38bed5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
net/batman-adv/bat_debugfs.c
net/batman-adv/bat_debugfs.c
+1
-0
net/batman-adv/main.h
net/batman-adv/main.h
+2
-1
No files found.
net/batman-adv/bat_debugfs.c
View file @
d3a547be
...
...
@@ -50,6 +50,7 @@ static void emit_log_char(struct debug_log *debug_log, char c)
debug_log
->
log_start
=
debug_log
->
log_end
-
log_buff_len
;
}
__printf
(
2
,
3
)
static
int
fdebug_log
(
struct
debug_log
*
debug_log
,
char
*
fmt
,
...)
{
va_list
args
;
...
...
net/batman-adv/main.h
View file @
d3a547be
...
...
@@ -136,7 +136,7 @@ void dec_module_count(void);
int
is_my_mac
(
uint8_t
*
addr
);
#ifdef CONFIG_BATMAN_ADV_DEBUG
int
debug_log
(
struct
bat_priv
*
bat_priv
,
char
*
fmt
,
...);
int
debug_log
(
struct
bat_priv
*
bat_priv
,
char
*
fmt
,
...)
__printf
(
2
,
3
)
;
#define bat_dbg(type, bat_priv, fmt, arg...) \
do { \
...
...
@@ -145,6 +145,7 @@ int debug_log(struct bat_priv *bat_priv, char *fmt, ...);
} \
while (0)
#else
/* !CONFIG_BATMAN_ADV_DEBUG */
__printf
(
3
,
4
)
static
inline
void
bat_dbg
(
char
type
__always_unused
,
struct
bat_priv
*
bat_priv
__always_unused
,
char
*
fmt
__always_unused
,
...)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment