WINCE 串列埠列印資訊的遮蔽與開啟

2022-09-06 04:27:10 字數 720 閱讀 8807

第一種:

將下面這句**加入到驅動所在目錄中的sources檔案中即可:

cdefines=$(cdefines) -ddebug

第二種

#undef debugmsg

#define debugmsg(x,s) nkdbgprintfw s

這樣這個驅動檔案裡的所有除錯資訊都會列印出來,並且不理會debugzone的設定。

如果想遮蔽某個驅動的所有列印資訊怎麼辦?在驅動前面加入如下巨集定義即可

#define ship_build  1

#ifdef ship_build

#define errormsg(cond,printf_exp) ((void)0)

#define retailmsg(cond,printf_exp) ((void)0)

#define debugmsg(cond,printf_exp) ((void)0)

#define debugled(cond,parms) ((void)0)

#define dbgchk(module,exp) ((void)0)

#define debugchk(exp) ((void)0)

#define debugregister(hmod) ((void)0)

#define retailregisterzones(hmod) ((void)0)

#endif

**:

遮蔽核心啟動列印資訊

最近做的4412板子終於經過測試形成產品,在這之前需要把核心啟動過程中的列印資訊去掉,並且更換啟動logo,下面講講自己去掉列印資訊的過程。一 去掉列印資訊方法很多,我使用乙個相對比較簡單的,就是將下面選項的 去掉 device drivers character devices support f...

串列埠列印資訊的奇怪問題

遇到的問題 自己解決加入串列埠列印資訊碰到了鬱悶的事情。剛開始,我只想把c wince500 public common oak drivers serial com mdd2編譯成debug版本,來列印資訊的。我採用了如下方法 第一種 將下面這句 加入到驅動所在目錄中的sources檔案中即可 c...

ACE TRACE main 不列印資訊的原因

我們知道ace日誌巨集是否產生日誌方法呼叫,由三個配置在編譯時的值決定 ace ntrace ace ndebug,以及ace nlogging。要啟用相應的日誌巨集,需要定義相應的巨集。ace ntrace預設為1 禁用 ace ndebug和ace nlogging預設為未定義 啟用 通過在包含...