This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LOG_printf的类函数宏定义



GCC支持下面这样的宏定义:

#define DM674x_PRT(fmt, args...) \

                    sprintf(&str, fmt, ## args)

但是CCS5并不支持这样的宏定义:

#define DM674x_PRT(fmt, args...) \

                   LOG_printf(&trace, fmt, ## args)

请问CCS5的语法应该怎么写,我需要把代码中的所有printf改写为LOG_printf,使用的编译工具是:TI V7.2 OB2