mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-16 02:03:00 -07:00
Update hidcardformats.c
Updated to use macros as requested by @pwpiwi
This commit is contained in:
parent
72ffc28d37
commit
329f495fe9
1 changed files with 4 additions and 4 deletions
|
@ -574,13 +574,13 @@ bool HIDPack(/* in */int FormatIndex, /* in */hidproxcard_t* card, /* out */hidp
|
|||
void HIDDisplayUnpackedCard(hidproxcard_t* card, const hidcardformat_t format){
|
||||
PrintAndLog(" Format: %s (%s)", format.Name, format.Descrp);
|
||||
if (format.Fields.hasFacilityCode)
|
||||
PrintAndLog("Facility Code: %u",card->FacilityCode);
|
||||
PrintAndLog("Facility Code: %" PRIu32,card->FacilityCode);
|
||||
if (format.Fields.hasCardNumber)
|
||||
PrintAndLog(" Card Number: %lu",card->CardNumber);
|
||||
PrintAndLog(" Card Number: %" PRIu64,card->CardNumber);
|
||||
if (format.Fields.hasIssueLevel)
|
||||
PrintAndLog(" Issue Level: %u",card->IssueLevel);
|
||||
PrintAndLog(" Issue Level: %" PRIu32,card->IssueLevel);
|
||||
if (format.Fields.hasOEMCode)
|
||||
PrintAndLog(" OEM Code: %u",card->OEM);
|
||||
PrintAndLog(" OEM Code: %" PRIu32,card->OEM);
|
||||
if (format.Fields.hasParity)
|
||||
PrintAndLog(" Parity: %s",card->ParityValid ? "Valid" : "Invalid");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue