From 88129f002419d28b3fbb364e48f01d2c2359e787 Mon Sep 17 00:00:00 2001 From: Shilin Victor Date: Thu, 14 Feb 2019 15:38:14 +0300 Subject: [PATCH] ril: debug Change-Id: I421abf8b2e4cae3bccdd08a9f3af15916629c57c --- ril/libril/ril_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ril/libril/ril_service.cpp b/ril/libril/ril_service.cpp index 0ef37db..a8efe84 100644 --- a/ril/libril/ril_service.cpp +++ b/ril/libril/ril_service.cpp @@ -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();