??
对于驱动程序设计来说,核心问题之一就是如何完成调试。当前常用的驱动调试技术可分为:
? 打印调试(printk)
? 调试器调试(kgdb)
? 查询调试
1、合理使用printk
#ifdef PDEBUG
#define PLOG(fmt,args...) printk(KERN_DEBUG "scull:"fmt,##args)
#else
#define PLOG(...
分类:
系统相关 时间:
2015-08-29 18:53:55
阅读次数:
268
1 void plog(const char *fmt, ...) 2 { 3 va_list arg; 4 char pbString[256]; 5 va_start(arg, fmt); 6 vsprintf(pbString, fmt, arg); //若此行和下行改为:done = fp....
分类:
其他好文 时间:
2015-05-05 23:13:45
阅读次数:
165
#安装说明
https://projects.pekdon.net/projects/plog/wikis/Install
envPHEW_CONFIG=/etc/plog.cfgphewhttpdplog.frontend
phew模块网址
https://www.pekwm.org/projects/phew/
nginx日志配置
access_logsyslog:user:info:127.0.0.1:5514:identmain;
系统日志配置
*.*@192...
分类:
其他好文 时间:
2015-04-18 06:28:09
阅读次数:
170
玩家移动//好长时间没看这些,好多都看不懂了void Map::UpdatePlayerPos(TgtPos pos, PlayerInfo* pl){// m_pLog->Logs(eLogLevel_Warning, "人物移动"); // 检查位置包 auto& mpos =...
分类:
移动开发 时间:
2014-12-14 00:31:14
阅读次数:
305