ReactOS输出log

ReactOS默认的log是关闭的,在进入系统选择菜单“ReactOS (Debug)”,此时log通过串口输出。

打印log可以使用DbgPrint函数。

NDEBUG宏控制DBG版本中输出log。

在每个module里都定义了NDEBUG宏,如果想在DBG版本里打印log就注释掉NDEBUG宏。此时DPRINT,DPRINT1等输出log的宏被enable。

对于freeldr,也是用DbgPrint函数。

在debug.c里修改下列宏,可以控制是否在DBG版本里打印log:

//#define DEBUG_ALL
//#define DEBUG_INIFILE
//#define DEBUG_REACTOS
//#define DEBUG_CUSTOM
#define DEBUG_NONE

转载于:https://www.cnblogs.com/fanzi2009/archive/2009/06/04/1496200.html

猜你喜欢

转载自blog.csdn.net/weixin_34352449/article/details/94192556