minor debug improvements.

This commit is contained in:
Romuald Conty 2011-04-08 08:35:55 +00:00
parent e076683dea
commit ef75599d75

View file

@ -596,14 +596,14 @@ int mf_enhanced_auth(int e_sector, int a_sector, mftag t, mfreader r, denonce *d
// We need full control over the CRC // We need full control over the CRC
if (!nfc_configure(r.pdi, NDO_HANDLE_CRC, false)) { if (!nfc_configure(r.pdi, NDO_HANDLE_CRC, false)) {
nfc_perror (r.pdi, "nfc_configure"); nfc_perror (r.pdi, "nfc_configure crc");
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
} }
// Request plain tag-nonce // Request plain tag-nonce
// fprintf(stdout, "\t[Nt]:\t"); // fprintf(stdout, "\t[Nt]:\t");
if (!nfc_configure (r.pdi, NDO_EASY_FRAMING, false)) { if (!nfc_configure (r.pdi, NDO_EASY_FRAMING, false)) {
nfc_perror (r.pdi, "nfc_configure"); nfc_perror (r.pdi, "nfc_configure framing");
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
} }
@ -649,7 +649,10 @@ int mf_enhanced_auth(int e_sector, int a_sector, mftag t, mfreader r, denonce *d
} }
// Finally we want to send arbitrary parity bits // Finally we want to send arbitrary parity bits
nfc_configure(r.pdi, NDO_HANDLE_PARITY, false); if (!nfc_configure(r.pdi, NDO_HANDLE_PARITY, false)) {
nfc_perror (r.pdi, "nfc_configure parity");
exit (EXIT_FAILURE);
}
// Transmit reader-answer // Transmit reader-answer
// fprintf(stdout, "\t{Ar}:\t"); // fprintf(stdout, "\t{Ar}:\t");