mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 08:45:49 +00:00
Annotate printk with printf attribute
This way gcc will be able to catch invalid format bugs. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
6ce8d8ab93
commit
fa5ce3112f
@@ -16,7 +16,8 @@
|
||||
#include "compiler.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 KBYTES_SHIFT 10
|
||||
|
Reference in New Issue
Block a user