ril: debug

Change-Id: I421abf8b2e4cae3bccdd08a9f3af15916629c57c
This commit is contained in:
Shilin Victor 2019-02-14 15:38:14 +03:00
parent e7eab5f906
commit 88129f0024
1 changed files with 2 additions and 1 deletions

View File

@ -3966,7 +3966,8 @@ IccIoResult responseIccIo(RadioResponseInfo& responseInfo, int serial, int respo
populateResponseInfo(responseInfo, serial, responseType, e);
IccIoResult result = {};
if (response == NULL || responseLen != sizeof(RIL_SIM_IO_Response)) {
RLOGE("%s: responseLen=%d (should be %d)", __func__, responseLen, sizeof(RIL_SIM_IO_Response));
if (response == NULL || responseLen < sizeof(RIL_SIM_IO_Response)) {
RLOGE("Invalid response: NULL");
if (e == RIL_E_SUCCESS) responseInfo.error = RadioError::INVALID_RESPONSE;
result.simResponse = hidl_string();