Commit d0341845 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

do_open_proc: annotate with printf attr

This will help us catch bugs where the arguments are not in line
with the format string.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 9469f2c0
...@@ -73,7 +73,8 @@ extern int set_proc_fd(int fd); ...@@ -73,7 +73,8 @@ extern int set_proc_fd(int fd);
#define PROC_GEN -1 #define PROC_GEN -1
#define PROC_NONE -2 #define PROC_NONE -2
extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...); extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
#define __open_proc(pid, ier, flags, fmt, ...) \ #define __open_proc(pid, ier, flags, fmt, ...) \
({ \ ({ \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment