debug信息会输出行号和文件名

This commit is contained in:
fslongjin
2022-04-08 22:59:11 +08:00
parent 232d793627
commit 24b351c9ec

View File

@ -32,7 +32,7 @@
#define kdebug(...) \ #define kdebug(...) \
do \ do \
{ \ { \
printk("[ DEBUG ] "); \ printk("[ DEBUG ] (%s:%d)\t", __FILE__, __LINE__); \
printk(__VA_ARGS__); \ printk(__VA_ARGS__); \
printk("\n"); \ printk("\n"); \
} while (0); } while (0);