summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Linux_x86/phOsalNfc.c12
-rw-r--r--src/phHciNfc_Generic.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/Linux_x86/phOsalNfc.c b/Linux_x86/phOsalNfc.c
index cbca1ac..1fd2288 100644
--- a/Linux_x86/phOsalNfc.c
+++ b/Linux_x86/phOsalNfc.c
@@ -81,7 +81,7 @@ void phOsalNfc_DbgString(const char *pString)
#ifndef ANDROID
printf(pString);
#else
- LOGD("%s", pString);
+ ALOGD("%s", pString);
#endif
#endif
}
@@ -111,15 +111,15 @@ void phOsalNfc_DbgTrace(uint8_t data[], uint32_t size)
{
if((i % 10) == 0)
{
- LOGD("%s", phOsalNfc_DbgTraceBuffer);
+ ALOGD("%s", phOsalNfc_DbgTraceBuffer);
phOsalNfc_DbgTraceBuffer[0] = '\0';
}
snprintf(buf, 10, "%02X ", data[i]);
strncat(phOsalNfc_DbgTraceBuffer, buf, 10);
}
- LOGD("%s", phOsalNfc_DbgTraceBuffer);
- LOGD("Block size is: %d", size);
+ ALOGD("%s", phOsalNfc_DbgTraceBuffer);
+ ALOGD("Block size is: %d", size);
#endif
#endif
}
@@ -140,7 +140,7 @@ void phOsalNfc_DbgTrace(uint8_t data[], uint32_t size)
*/
void phOsalNfc_RaiseException(phOsalNfc_ExceptionType_t eExceptionType, uint16_t reason)
{
- LOGD("phOsalNfc_RaiseException() called");
+ ALOGD("phOsalNfc_RaiseException() called");
if(eExceptionType == phOsalNfc_e_UnrecovFirmwareErr)
{
@@ -208,5 +208,5 @@ void phOsalNfc_PrintData(const char *pString, uint32_t length, uint8_t *pBuffer,
}
}
- LOGD("> %s:%s\t%s", pString, print_buffer, llc);
+ ALOGD("> %s:%s\t%s", pString, print_buffer, llc);
}
diff --git a/src/phHciNfc_Generic.h b/src/phHciNfc_Generic.h
index 1d7b522..de4bbfd 100644
--- a/src/phHciNfc_Generic.h
+++ b/src/phHciNfc_Generic.h
@@ -76,7 +76,7 @@ extern char phOsalNfc_DbgTraceBuffer[];
#define MAX_TRACE_BUFFER 150
/* #define HCI_PRINT( str ) phOsalNfc_DbgTrace(str) */
#define HCI_PRINT( str ) phOsalNfc_DbgString(str)
-#define HCI_DEBUG(...) LOGD(__VA_ARGS__)
+#define HCI_DEBUG(...) ALOGD(__VA_ARGS__)