How to use the "DBG_vPrintf" print current file name and line nunber in Beyond studio

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use the "DBG_vPrintf" print current file name and line nunber in Beyond studio

1,872件の閲覧回数
leoxie
Contributor I

Hi everone,

    I have a question that How to use the "DBG_vPrintf" print current file name and line nunber in Beyond studio?

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

1,477件の閲覧回数
limcb
Contributor IV

Standard gcc works.

Standard Predefined Macros - The C Preprocessor 

Input:

    DBG_vPrintf(TRUE, "* ROUTER RESET  %s %d                              *\n", __FILE__, __LINE__);

Output:

* ROUTER RESET c:/NXP/bstudio_nxp/workspace/JN-AN-1217-Zigbee-3-0-Base-Device/R
outer/Source/app_start.c 163 *

1,477件の閲覧回数
leoxie
Contributor I

Thanks very much.

0 件の賞賛
返信