From 24b351c9ec614c4b7c7a3dc758e7499e8d179d70 Mon Sep 17 00:00:00 2001 From: fslongjin Date: Fri, 8 Apr 2022 22:59:11 +0800 Subject: [PATCH] =?UTF-8?q?debug=E4=BF=A1=E6=81=AF=E4=BC=9A=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E8=A1=8C=E5=8F=B7=E5=92=8C=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/common/kprint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/common/kprint.h b/kernel/common/kprint.h index da9c0a9f7..c781d183d 100644 --- a/kernel/common/kprint.h +++ b/kernel/common/kprint.h @@ -32,7 +32,7 @@ #define kdebug(...) \ do \ { \ - printk("[ DEBUG ] "); \ + printk("[ DEBUG ] (%s:%d)\t", __FILE__, __LINE__); \ printk(__VA_ARGS__); \ printk("\n"); \ } while (0);