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,476 次查看
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?

0 项奖励
回复
2 回复数

1,081 次查看
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,081 次查看
leoxie
Contributor I

Thanks very much.

0 项奖励
回复