首页 > 其他 > 详细

[quote] How to define DEBUG for pr_debug

时间:2014-08-21 09:36:13      阅读:329      评论:0      收藏:0      [点我收藏+]

Quoted from the  https://www.kernel.org/doc/local/pr_debug.txt

 

pr_debug()

    Some files call pr_debug(), which is ordinarily an empty macro that discards
    its arguments at compile time.  To enable debugging output, build the
    appropriate file with -DDEBUG by adding

      CFLAGS_[filename].o := -DDEBUG

    to the makefile.

    For example, to see all attempts to spawn a usermode helper (such as
    /sbin/hotplug), add to lib/Makefile the line:

        CFLAGS_kobject_uevent.o := -DDEBUG

    Then boot the new kernel, do something that spawns a usermode helper, and
    use the "dmesg" command to view the pr_debug() output.

[quote] How to define DEBUG for pr_debug,布布扣,bubuko.com

[quote] How to define DEBUG for pr_debug

原文:http://www.cnblogs.com/lake-of-embedded-system/p/3926291.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!