- printf("ERROR: Calculated wrong hash\n");
- printf("decoded: %s\n",sprint_hex(data + data_len - 1 - hash_len, hash_len));
- printf("calculated: %s\n",sprint_hex(hash, hash_len));
+ PrintAndLogEx(ERR, "Calculated wrong hash\n");
+ PrintAndLogEx(INFO, "decoded: %s\n",sprint_hex(data + data_len - 1 - hash_len, hash_len));
+ PrintAndLogEx(INFO, "calculated: %s\n",sprint_hex(hash, hash_len));