From 022eacecdce350151345f1e0ca4f031b5b4252d9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 13 Mar 2020 14:37:49 +0100 Subject: [PATCH] format --- tools/hitag2crack/crack3/ht2crack3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/hitag2crack/crack3/ht2crack3.c b/tools/hitag2crack/crack3/ht2crack3.c index 11cab5ed9..da35bbd14 100644 --- a/tools/hitag2crack/crack3/ht2crack3.c +++ b/tools/hitag2crack/crack3/ht2crack3.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "HardwareProfile.h" #include "rfidler.h" @@ -243,7 +244,7 @@ void *crack(void *d) { // find keys for (klower = data->klowerstart; klower < (data->klowerstart + data->klowerrange); klower++) { - printf("trying klower = 0x%05lx\n", klower); + printf("trying klower = 0x%05"PRIx64"\n", klower); // build table count = 0; for (y = 0; y < 0x40000; y++) { @@ -304,7 +305,7 @@ void *crack(void *d) { if ((found) && (!badguess)) { // brute - printf("possible partial key found: 0x%012lx\n", ((uint64_t)kmiddle << 16) | klower); + printf("possible partial key found: 0x%012"PRIx64"\n", ((uint64_t)kmiddle << 16) | klower); if (testkey(&foundkey, uid, (kmiddle << 16 | klower), TnRaR[0].nR, TnRaR[0].aR) && testkey(&foundkey, uid, (kmiddle << 16 | klower), TnRaR[1].nR, TnRaR[1].aR)) {