From ce74a25d064639e6961aeb2ef3be221eba366ece Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 29 Jan 2022 15:12:42 +0100 Subject: [PATCH] use macros instead --- tools/mfd_aes_brute/brute_key.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/mfd_aes_brute/brute_key.c b/tools/mfd_aes_brute/brute_key.c index 00db53074..340ff797b 100644 --- a/tools/mfd_aes_brute/brute_key.c +++ b/tools/mfd_aes_brute/brute_key.c @@ -25,10 +25,12 @@ #include #include #include +#include #include +#include #include #include -#include + uint32_t seed = 0; @@ -149,7 +151,7 @@ int main (int argc, char* argv[]) { if (dec_tag[15] != dec_rdr[30]) continue; - printf("\btimestamp: %lu\nkey: ", timestamp); + printf("\btimestamp: %" PRIu64 "\nkey: ", timestamp); for (int i = 0; i < 16; i++) { printf("%02x", key[i]); }