From 19e810a49d7ede3d5f8aa763d348a5a2aab5b514 Mon Sep 17 00:00:00 2001 From: r3df0xx Date: Sat, 2 Apr 2022 00:19:47 +0300 Subject: [PATCH] Update subghz_keystore.c --- lib/subghz/subghz_keystore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/subghz/subghz_keystore.c b/lib/subghz/subghz_keystore.c index 888ee1d30..ac238099b 100644 --- a/lib/subghz/subghz_keystore.c +++ b/lib/subghz/subghz_keystore.c @@ -139,7 +139,7 @@ static bool subghz_keystore_read_file(SubGhzKeystore* instance, Stream* stream, if(furi_hal_crypto_decrypt( (uint8_t*)encrypted_line, (uint8_t*)decrypted_line, len)) { subghz_keystore_process_line(instance, decrypted_line); - FURI_LOG_I(TAG, "decrypted line: %016lX", (uint64_t)decrypted_line); + FURI_LOG_I(TAG, "decrypted line: %016lX", decrypted_line); } else { FURI_LOG_E(TAG, "Decryption failed"); result = false; @@ -579,9 +579,9 @@ bool subghz_keystore_raw_get_data(const char* file_name, size_t offset, uint8_t* buffer[i / 2] = (hi_nibble << 4) | lo_nibble; } - FURI_LOG_I(TAG, "decrypted line: %016lX", (uint64_t)decrypted_line); + FURI_LOG_I(TAG, "decrypted line: %016lX", decrypted_line); memset(decrypted_line, 0, SUBGHZ_KEYSTORE_FILE_DECRYPTED_LINE_SIZE); - FURI_LOG_I(TAG, "decrypted line: %016lX", (uint64_t)decrypted_line); + FURI_LOG_I(TAG, "decrypted line: %016lX", decrypted_line); if(!furi_hal_crypto_decrypt( (uint8_t*)buffer, (uint8_t*)decrypted_line, bufer_size / 2)) { @@ -590,7 +590,7 @@ bool subghz_keystore_raw_get_data(const char* file_name, size_t offset, uint8_t* break; } memcpy(data, (uint8_t*)decrypted_line + (offset - (offset / 16) * 16), len); - FURI_LOG_I(TAG, "decrypted line: %016lX", (uint64_t)decrypted_line); + FURI_LOG_I(TAG, "decrypted line: %016lX", decrypted_line); } while(0); furi_hal_crypto_store_unload_key(SUBGHZ_KEYSTORE_FILE_ENCRYPTION_KEY_SLOT);