mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-19 19:38:52 +08:00
FIX: wrong format specifier syntax
This commit is contained in:
parent
621601ecef
commit
28093ebc10
2 changed files with 4 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <pthread.h>
|
||||
#include <locale.h>
|
||||
#include <math.h>
|
||||
#include <inttypes.h>
|
||||
#include "proxmark3.h"
|
||||
#include "cmdmain.h"
|
||||
#include "ui.h"
|
||||
|
@ -1292,7 +1293,7 @@ static void generate_candidates(uint16_t sum_a0, uint16_t sum_a8)
|
|||
}
|
||||
}
|
||||
}
|
||||
printf("Number of possible keys with Sum(a0) = %d: %ll (2^%1.1f)\n", sum_a0, maximum_states, log(maximum_states)/log(2.0));
|
||||
printf("Number of possible keys with Sum(a0) = %d: %"PRIu64" (2^%1.1f)\n", sum_a0, maximum_states, log(maximum_states)/log(2.0));
|
||||
|
||||
init_statelist_cache();
|
||||
|
||||
|
@ -1341,7 +1342,7 @@ static void generate_candidates(uint16_t sum_a0, uint16_t sum_a8)
|
|||
for (statelist_t *sl = candidates; sl != NULL; sl = sl->next) {
|
||||
maximum_states += (uint64_t)sl->len[ODD_STATE] * sl->len[EVEN_STATE];
|
||||
}
|
||||
printf("Number of remaining possible keys: %ll (2^%1.1f)\n", maximum_states, log(maximum_states)/log(2.0));
|
||||
printf("Number of remaining possible keys: %"PRIu64" (2^%1.1f)\n", maximum_states, log(maximum_states)/log(2.0));
|
||||
if (write_stats) {
|
||||
if (maximum_states != 0) {
|
||||
fprintf(fstats, "%1.1f;", log(maximum_states)/log(2.0));
|
||||
|
|
|
@ -59,7 +59,7 @@ int CmdEM410xRead(const char *Cmd)
|
|||
}
|
||||
char id[12] = {0x00};
|
||||
//sprintf(id, "%010llx",lo);
|
||||
sprintf(id, "%010" PRIu64 ", lo);
|
||||
sprintf(id, "%010"PRIu64, lo);
|
||||
|
||||
global_em410xId = id;
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue