flinkLinux
flink Linux Kernel Modules
 All Data Structures Files Functions Variables Macros Pages
flink_debug.h
Go to the documentation of this file.
1 #ifndef FLINK_DEBUG_H_
2 #define FLINK_DEBUG_H_
3 
4 
5 #define printka(fmt, ...) printk(KERN_ALERT pr_fmt("[" KBUILD_MODNAME "]: " fmt "\n"), ##__VA_ARGS__)
6 #define printke(fmt, ...) printk(KERN_ERR pr_fmt("[" KBUILD_MODNAME "]: " fmt "\n"), ##__VA_ARGS__)
7 #define printkw(fmt, ...) printk(KERN_WARNING pr_fmt("[" KBUILD_MODNAME "]: " fmt "\n"), ##__VA_ARGS__)
8 #define printkn(fmt, ...) printk(KERN_NOTICE pr_fmt("[" KBUILD_MODNAME "]: " fmt "\n"), ##__VA_ARGS__)
9 #define printki(fmt, ...) printk(KERN_INFO pr_fmt("[" KBUILD_MODNAME "]: " fmt "\n"), ##__VA_ARGS__)
10 #define printkd(fmt, ...) printk(KERN_DEBUG pr_fmt("[" KBUILD_MODNAME "]: " fmt "\n"), ##__VA_ARGS__)
11 
12 
13 #endif // FLINK_DEBUG_H_
14