How to use the "DBG_vPrintf" print current file name and line nunber in Beyond studio
‎11-17-2016
06:20 PM
1,478 Views
leoxie
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everone,
I have a question that How to use the "DBG_vPrintf" print current file name and line nunber in Beyond studio?
2 Replies
‎11-17-2016
07:04 PM
1,083 Views
limcb
Contributor IV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 *
Reply
‎11-18-2016
01:34 AM
1,083 Views
leoxie
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks very much.
