通过OALLogSetZones()函数打开OAL全部调试信息
2010-09-12 13:58
190 查看
/*************************************************************
** 标题:通过OALLogSetZones()函数打开OAL全部调试信息
** 作者:Veabol & 韦伯嵌入式开发网
** 发布日期:2010-09-08
** 最后修改:2010-09-12
** 注意事项:转载需注明出处,且转载过程中不得修改、删除文章中的任何内容;未经作者同意,商业网站不可转载
*************************************************************/
OAL层代码中诸如 OALMSG(OAL_FUNC, (L"+OEMInit\r\n"));类型的代码默认只有使用OAL_ERROR和OAL_WARN才能输出调试信息,实际上可以通过简单地通过OALLogSetZones()函数打开OAL全部调试信息。
在MSDN中函数说明如下:
This function updates the current trace zone mask.
void OALLogSetZones( UINT32 zones);
Parameterszones [in] Specifies the trace zones to be logged. See OAL Trace Zones for descriptions of the valid trace zones. The trace zones can be combined in this argument using Boolean operators. Return Values
None.
(原创文章,转载请注明出处: http://www.veabol.com/thread-17-1-1.html )
OAL Trace Zones 描述如下:
OAL trace zones determine the type and source of logging information. Several trace zone constants, OAL_FUNC, OAL_INFO, and OAL_VERBOSE, are module-dependent. These constants must be combined with module-based trace zone constants. For example, to log function calls in the memory module, use OAL_FUNC and OAL_MEMORY.
OAL_ERROR and OAL_WARN specify general logging and are not associated with any modules.
The following table shows the supported OAL trace zones.
** 标题:通过OALLogSetZones()函数打开OAL全部调试信息
** 作者:Veabol & 韦伯嵌入式开发网
** 发布日期:2010-09-08
** 最后修改:2010-09-12
** 注意事项:转载需注明出处,且转载过程中不得修改、删除文章中的任何内容;未经作者同意,商业网站不可转载
*************************************************************/
OAL层代码中诸如 OALMSG(OAL_FUNC, (L"+OEMInit\r\n"));类型的代码默认只有使用OAL_ERROR和OAL_WARN才能输出调试信息,实际上可以通过简单地通过OALLogSetZones()函数打开OAL全部调试信息。
在MSDN中函数说明如下:
This function updates the current trace zone mask.
void OALLogSetZones( UINT32 zones);
Parameterszones [in] Specifies the trace zones to be logged. See OAL Trace Zones for descriptions of the valid trace zones. The trace zones can be combined in this argument using Boolean operators. Return Values
None.
(原创文章,转载请注明出处: http://www.veabol.com/thread-17-1-1.html )
OAL Trace Zones 描述如下:
OAL trace zones determine the type and source of logging information. Several trace zone constants, OAL_FUNC, OAL_INFO, and OAL_VERBOSE, are module-dependent. These constants must be combined with module-based trace zone constants. For example, to log function calls in the memory module, use OAL_FUNC and OAL_MEMORY.
OAL_ERROR and OAL_WARN specify general logging and are not associated with any modules.
The following table shows the supported OAL trace zones.
Zone | Description |
OAL_ERROR | Logs errors. This trace zone is not associated with any modules. |
OAL_WARN | Logs warnings. This trace zone is not associated with any modules. |
OAL_FUNC | Logs function calls. Use this trace zone to log program flow information. This trace zone must be set with a module-based trace zone when specified in a function. |
OAL_INFO | Specifies that informational messages will be logged. This trace zone must be set with a module-based trace zone when specified in a function. |
OAL_VERBOSE | Logs in verbose mode. This trace zone must be set with a module-based trace zone when specified in a function. |
OAL_STUB | Logs messages from the stub module. |
OAL_KEYVAL | Logs messages from the keyval module. |
OAL_IO | Logs messages from the IO module. |
OAL_CACHE | Logs messages from the cache module. |
OAL_RTC | Logs messages from the RTC module. |
OAL_POWER | Logs messages from the power module. |
OAL_PCI | Logs messages from the PCI module. |
OAL_ARGS | Logs messages from the arguments module. |
OAL_MEMORY | Logs messages from the memory module. |
OAL_IOCTL | Logs messages from the IOCTL module. |
OAL_TIMER | Logs messages from the timer module. |
OAL_ETHER | Logs messages from the Ethernet module |
OAL_FLASH | Logs messages from the flash module. |
OAL_INTR | Logs messages from the interrupts module. |
OAL_KITL | Logs messages from the KITL module. |
相关文章推荐
- 通过OALLogSetZones()函数打开OAL全部调试信息
- MFC调用win32窗口显示调试信息,使用AllocConsole 函数
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题(转)
- Android 通过USB查看kernel调试信息
- 各类Java heap space 解决方法,并通过java代码获取JVM的相关信息,所在操作系统的信息(包含eclipse&myeclipse的调试的内存设置)
- 如何打开pr_debug调试信息
- # include <errno.h >查看错误代码errno是调试程序的一个重要方法。当Linux C API函数发生异常时,一般会将errno变量赋值一个整数,不同的值表示不同的含义,可以通过查看
- 频繁通过win32api的createfile函数打开文件句柄导致内存泄漏
- 通过使用浏览器对象模型,输出当前浏览器窗口中打开的文档的URL信息,并将显示在窗口中。
- android底层驱动学习之如何通过debugfs创建文件的方式来调试内核信息
- 通过IWebBrowser2的Navigate2来打开网页,怎样判断网页是否全部加载完毕
- linux驱动调试之段错误分析-根据栈信息分析函数调用过程
- c#不使用windows api函数打开我的电脑和获取电脑驱动器信息
- 打开Kernel中的pr_dbg调试信息
- 通过包名打开另外一个应用程序和获取手机中已安装apk文件信息(PackageInfo、ResolveInfo)
- 通过包名打开另外一个应用程序和获取手机中已安装apk文件信息(PackageInfo、ResolveInfo)
- 调试程序时在不中断程序的情况下输出函数调用信息(Mac OS,Linux & Windows)
- 输入m个学生,每个学生有4门课,在主调函数中输入学生的相关信息,编写三个函数: (1)求第一门课的平均分; (2)找出有两门课以上不及格的学生,并输出他们的学号和全部成绩,要求用指针函数实现:fl
- Dev C++工程没有调试信息,您想打开工程的调试选项并重新生成吗?解决方法
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题