summaryrefslogtreecommitdiffstats
path: root/Linux_x86
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-06-08 17:24:36 -0700
committerMartijn Coenen <maco@google.com>2012-06-08 17:25:17 -0700
commit6141c4b7a438cacda2a54aa20c83700cd6f314a7 (patch)
treec493cf21d951870097e3e1b775876b5f493ce244 /Linux_x86
parentc4f816eaa812220a5f0d944bac3949b50b9cf5a5 (diff)
downloadexternal_libnfc-nxp-6141c4b7a438cacda2a54aa20c83700cd6f314a7.zip
external_libnfc-nxp-6141c4b7a438cacda2a54aa20c83700cd6f314a7.tar.gz
external_libnfc-nxp-6141c4b7a438cacda2a54aa20c83700cd6f314a7.tar.bz2
Remove some logs in case of abort().
This allows us to see more context of HCI timeout crashes. Change-Id: I5cf1f829f3d0db5afd8d2c753fba7c3f8ad70365
Diffstat (limited to 'Linux_x86')
-rw-r--r--Linux_x86/phOsalNfc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Linux_x86/phOsalNfc.c b/Linux_x86/phOsalNfc.c
index 83b4e6e..e906b0d 100644
--- a/Linux_x86/phOsalNfc.c
+++ b/Linux_x86/phOsalNfc.c
@@ -142,14 +142,13 @@ void phOsalNfc_DbgTrace(uint8_t data[], uint32_t size)
*/
void phOsalNfc_RaiseException(phOsalNfc_ExceptionType_t eExceptionType, uint16_t reason)
{
- ALOGD("phOsalNfc_RaiseException() called");
-
if(eExceptionType == phOsalNfc_e_UnrecovFirmwareErr)
{
- ALOGE("HCI Timeout - Exception raised");
+ ALOGE("HCI Timeout - Exception raised - Force restart of NFC service");
phLibNfc_Mgt_Recovery();
- ALOGE("Force restart of NFC Service");
abort();
+ } else {
+ ALOGD("phOsalNfc_RaiseException() called");
}
}