char buf[20] = {0};
memset(buf, 0x00, sizeof(buf));
//sprintf(buf, "%X%X", (unsigned int)((data & 0xFFFFFFFF00000000) >> 32), (unsigned int)(data & 0xFFFFFFFF));
- sprintf(buf, "%012"llx"", data);
+ sprintf(buf, "%012" PRIx64 "", data);
AddLogLine(fileName, extData, buf);
}
int param_gethex(const char *line, int paramnum, uint8_t * data, int hexcnt)
{
- int bg, en, temp, i;
+ int bg, en, i;
+ uint32_t temp;
if (hexcnt & 1) return 1;
}
int param_gethex_ex(const char *line, int paramnum, uint8_t * data, int *hexcnt)
{
- int bg, en, temp, i;
+ int bg, en, i;
+ uint32_t temp;
//if (hexcnt % 2)
// return 1;