char *HBX_String_Format(const char* fmt, ...)
{
char *sg_ucBuffer = XOS_GetUB(1000);
va_list vaList;
va_start(vaList, fmt);
vsprintf(sg_ucBuffer, fmt, vaList);
va_end(vaList);
//printftest("sg_ucBuffer =%s\r\n",sg_ucBuffer);
sg_ucBuffer[999] = '\0';
return sg_ucBuffer;
}
#define PT_Printf(...) \
do { \
HBX_Printf(PM_PRT_ERR,__VA_ARGS__); \
HBX_String_Format(PT_String_Format(__VA_ARGS__)); \
} while(0)
#define printftest(...) \
{ \
if(g_log_test) \
{ \
printf(__VA_ARGS__);\
} \
}
阅读(1412) | 评论(0) | 转发(0) |