函数实现:
static void LOGHEX(const char *pszPrompt, uchar *psParaInfo, int iParaLen)
{
int i;
LOG("%s", pszPrompt);
for(i = 0; i < iParaLen; i++ )
{
LOG("0x%02x ", psParaInfo[i]);
}
//LOG("psParaInfo=%s ", psParaInfo);
}
具体实例:
LOGHEX(“TMK KcvValue=”,KcvValue,sizeof(KcvValue));
输出结果: