通过OALLogSetZones()函数打开OAL全部调试信息
2010-09-12 13:51
176 查看
/*************************************************************
** 标题:通过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全部调试信息
- 如何打开pr_debug调试信息
- 集中打印调试信息的模版函数
- 读取指定文件夹下的全部文件,可通过正则进行过滤,返回文件路径数组 -- 基于node的一个函数
- 正在进行调试的Web服务器进程已由Internet信息服务(IIS)终止。可以通过在IIS中配置应用程序池Ping设置来避免这一问题。有关更多详细信息,请参见“帮助”
- 如何打开pr_debug调试信息
- 通过js的console优雅的将php调试信息输出
- 打开vc设置中release下的调试信息生成选项
- lnmp一键安装包中打开php调试信息
- zen cart 打开错误信息显示调试开关
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题(转)
- C++技术资源库(全部在Visual C++ 6.0环境下调试通过)
- php通过exif_read_data函数获取图片的exif信息
- 通过va_list和/dev/kmsg在串口打印调试信息
- 如何在.cc源码中通过变量向trace文件输入调试信息
- 某班5个学生,3门课,编写3个函数实现以下功能: //(1)求各门课的平均分 //(2)找出三门都不及格的学生,输出其全部信息 //(3)找出3门课平均分在80-90之间的学生,输出其信息。
- MFC调用win32窗口显示调试信息,使用AllocConsole 函数
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题(转)
- 各类Java heap space 解决方法,并通过java代码获取JVM的相关信息,所在操作系统的信息(包含eclipse&myeclipse的调试的内存设置)
- linux 驱动打开dev_dbg调试信息