Skip to content

Commit

Permalink
Added debug and error logs in hal apis.
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamagoud committed May 5, 2021
1 parent 8c1156e commit 8cef2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HAL/keymaster/4.1/JavacardKeymaster4Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ static std::tuple<std::unique_ptr<Item>, T> decodeData(CborConverter& cb, const
errorCode = static_cast<T>(get2sCompliment(tempErrCode));

if (T::OK != errorCode) {
errorCode = translateExtendedErrorsToHalErrors<T>(errorCode);
LOG(ERROR) << "error in decodeData: " << (int32_t) errorCode;
errorCode = translateExtendedErrorsToHalErrors<T>(errorCode);
}
LOG(DEBUG) << "decodeData status: " << (int32_t) errorCode;
return {std::move(item), errorCode};
Expand Down

0 comments on commit 8cef2bf

Please sign in to comment.