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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

999 Views
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 Kudos
2 Replies

604 Views
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 *

604 Views
leoxie
Contributor I

Thanks very much.

0 Kudos