return;
hexout = (char *)malloc(iLen * 3 + 1);
if (hexout != NULL) {
- uint8_t first, second;
for (int i = 0; i < iLen; i++) { // data in hex
- sprintf(&hexout[i * 3], "%02hX ", recv[i]);
+ sprintf(&hexout[i * 3], "%02X ", recv[i]);
}
PrintAndLog("%s", hexout);
free(hexout);
c.arg[0] = 1;
} else if (*Cmd == '\0') {
c.arg[0] = 0;
- } else if (sscanf(Cmd, "%i", &c.arg[0]) != 1) {
+ } else if (sscanf(Cmd, "%"lli, &c.arg[0]) != 1) {
PrintAndLog("use 'read' or 'read h', or 'read <divisor>'");
return 0;
}
p2 = state_s;
while ( *p1 != -1 && *p2 != -1 ) {
if (compar_state(p1, p2) == 0) {
- printf("p1:%d p2:%d p3:%d key:%012llx\n",p1-last_keylist, p2-state_s, p3-last_keylist,*p1);
+ printf("p1:%ld p2:%ld p3:%ld key:%012"llx"\n",p1-last_keylist, p2-state_s, p3-last_keylist,*p1);
*p3++ = *p1++;
p2++;
}