Why is pr_debug of the Linux kernel not giving any output?

前端 未结 2 2086
离开以前
离开以前 2020-12-14 21:15

I have a loadable kernel module and its init is as given below

static int __init id_init(void)
{
    struct identity *temp;

    /* some code which is not re         


        
2条回答
  •  一个人的身影
    2020-12-14 21:44

    Add following to Makefile, assuming filename.c is the module source file.

    CFLAGS_filename.o := -DDEBUG
    

    not

    CFLAGS_[filename].o := -DDEBUG
    

    Refer https://www.kernel.org/doc/local/pr_debug.txt

提交回复
热议问题