请教如何打开有关net的debug

28 views
Skip to first unread message

陈生

unread,
Aug 24, 2012, 11:06:57 PM8/24/12
to linux...@googlegroups.com
最近想追踪一下无线网络的注册过程,因此想打开mac80211和cfg80211模块的pr_debug功能。
1、单独把mac80211拿出来,直接编译模块,提示CONFIG_MAC80211_RC_DEFAULT undeclared。
2、尝试make menuconfig 去打开有关着两个模块的调试功能,没找到选项。
3、尝试直接调试linux 内核,但网上没有比较现成直接的案例,且不知哪种内核调试时可行的。
我开发板是Tiny6410,请教一下应该哪种思路比较好,个人能力有限,有些比较难的可能暂时无法自己解决得了,当然我也尽可能自己解决。



JJLee

unread,
Aug 26, 2012, 11:12:45 PM8/26/12
to linux...@googlegroups.com
自己加 printk 吧。



--
_______________________________________________
Linux设备驱动开发邮件列表 linux...@googlegroups.com
http://groups.google.gr/group/linuxdriver?hl=zh-CN
退订请使用原订阅邮箱发邮件至:linuxdriver...@googlegroups.com

Barry Song

unread,
Aug 29, 2012, 5:22:48 AM8/29/12
to linux...@googlegroups.com
在C文件的最开头(引用头文件之前)#define DEBUG, pr_debug的level 7消息打印。

在 2012年8月25日 上午11:06,陈生 <pingfanr...@126.com> 写道:

Reply all
Reply to author
Forward
0 new messages