From 6d8edc6278023c8e60508e473976eba72ef743fd Mon Sep 17 00:00:00 2001 From: Rajesh Nyamagoud Date: Tue, 4 May 2021 09:09:45 -0700 Subject: [PATCH] Added debug and error logs in hal apis. --- HAL/keymaster/4.1/JavacardKeymaster4Device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HAL/keymaster/4.1/JavacardKeymaster4Device.cpp b/HAL/keymaster/4.1/JavacardKeymaster4Device.cpp index 84894570..67f8f527 100644 --- a/HAL/keymaster/4.1/JavacardKeymaster4Device.cpp +++ b/HAL/keymaster/4.1/JavacardKeymaster4Device.cpp @@ -727,7 +727,7 @@ Return JavacardKeymaster4Device::importKey(const hidl_vec& k cppbor::Array subArray; if(keyFormat != KeyFormat::PKCS8 && keyFormat != KeyFormat::RAW) { - LOG(DEBUG) << "INS_IMPORT_KEY_CMD unsupported key format " << (int32_t)keyFormat; + LOG(ERROR) << "INS_IMPORT_KEY_CMD unsupported key format " << (int32_t)keyFormat; _hidl_cb(ErrorCode::UNSUPPORTED_KEY_FORMAT, keyBlob, keyCharacteristics); return Void(); } @@ -1130,7 +1130,7 @@ Return JavacardKeymaster4Device::begin(KeyPurpose purpose, const hidl_vec< } } } else { - LOG(ERROR) << "INS_BEGIN_OPERATION_CMD couldn't find tag: " << (int32_t)Tag::ALGORITHM; + LOG(ERROR) << "INS_BEGIN_OPERATION_CMD couldn't find algorithm tag: " << (int32_t)Tag::ALGORITHM; } } else { LOG(ERROR) << "INS_BEGIN_OPERATION_CMD error in getKeyCharacteristics status: " << (int32_t) errorCode;