Commit fa5ce311 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Cyrill Gorcunov

Annotate printk with printf attribute

This way gcc will be able to catch invalid format bugs.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 6ce8d8ab
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
#include "compiler.h" #include "compiler.h"
#include "types.h" #include "types.h"
extern void printk(const char *format, ...); extern void printk(const char *format, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));
#define PREF_SHIFT_OP(pref, op, size) ((size) op (pref ##BYTES_SHIFT)) #define PREF_SHIFT_OP(pref, op, size) ((size) op (pref ##BYTES_SHIFT))
#define KBYTES_SHIFT 10 #define KBYTES_SHIFT 10
......
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