diff options
Diffstat (limited to 'reference-ril')
-rw-r--r-- | reference-ril/atchannel.c | 12 | ||||
-rw-r--r-- | reference-ril/reference-ril.c | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/reference-ril/atchannel.c b/reference-ril/atchannel.c index f878b35..410ad0e 100644 --- a/reference-ril/atchannel.c +++ b/reference-ril/atchannel.c @@ -69,7 +69,7 @@ void AT_DUMP(const char* prefix, const char* buff, int len) { if (len < 0) len = strlen(buff); - LOGD("%.*s", len, buff); + ALOGD("%.*s", len, buff); } #endif @@ -398,9 +398,9 @@ static const char *readline() } else if (count <= 0) { /* read error encountered or EOF reached */ if(count == 0) { - LOGD("atchannel: EOF reached"); + ALOGD("atchannel: EOF reached"); } else { - LOGD("atchannel: read error %s", strerror(errno)); + ALOGD("atchannel: read error %s", strerror(errno)); } return NULL; } @@ -413,7 +413,7 @@ static const char *readline() s_ATBufferCur = p_eol + 1; /* this will always be <= p_read, */ /* and there will be a \0 at *p_read */ - LOGD("AT< %s\n", ret); + ALOGD("AT< %s\n", ret); return ret; } @@ -499,7 +499,7 @@ static int writeline (const char *s) return AT_ERROR_CHANNEL_CLOSED; } - LOGD("AT> %s\n", s); + ALOGD("AT> %s\n", s); AT_DUMP( ">> ", s, strlen(s) ); @@ -538,7 +538,7 @@ static int writeCtrlZ (const char *s) return AT_ERROR_CHANNEL_CLOSED; } - LOGD("AT> %s^Z\n", s); + ALOGD("AT> %s^Z\n", s); AT_DUMP( ">* ", s, strlen(s) ); diff --git a/reference-ril/reference-ril.c b/reference-ril/reference-ril.c index ce2b0ce..f5495db 100644 --- a/reference-ril/reference-ril.c +++ b/reference-ril/reference-ril.c @@ -1033,12 +1033,12 @@ static void requestSetupDataCall(void *data, size_t datalen, RIL_Token t) int retry = 10; const char *pdp_type; - LOGD("requesting data connection to APN '%s'", apn); + ALOGD("requesting data connection to APN '%s'", apn); fd = open ("/dev/qmi", O_RDWR); if (fd >= 0) { /* the device doesn't exist on the emulator */ - LOGD("opened the qmi device\n"); + ALOGD("opened the qmi device\n"); asprintf(&cmd, "up:%s", apn); len = strlen(cmd); @@ -1070,7 +1070,7 @@ static void requestSetupDataCall(void *data, size_t datalen, RIL_Token t) goto error; } else { status[rlen] = '\0'; - LOGD("### status: %s", status); + ALOGD("### status: %s", status); } } while (strncmp(status, "STATE=up", 8) && strcmp(status, "online") && --retry); @@ -1083,7 +1083,7 @@ static void requestSetupDataCall(void *data, size_t datalen, RIL_Token t) qmistatus = system("netcfg rmnet0 dhcp"); - LOGD("netcfg rmnet0 dhcp: status %d\n", qmistatus); + ALOGD("netcfg rmnet0 dhcp: status %d\n", qmistatus); if (qmistatus < 0) goto error; @@ -1273,7 +1273,7 @@ onRequest (int request, void *data, size_t datalen, RIL_Token t) ATResponse *p_response; int err; - LOGD("onRequest: %s", requestToString(request)); + ALOGD("onRequest: %s", requestToString(request)); /* Ignore all requests except RIL_REQUEST_GET_SIM_STATUS * when RADIO_STATE_UNAVAILABLE. @@ -1506,12 +1506,12 @@ onRequest (int request, void *data, size_t datalen, RIL_Token t) int i; const char ** cur; - LOGD("got OEM_HOOK_STRINGS: 0x%8p %lu", data, (long)datalen); + ALOGD("got OEM_HOOK_STRINGS: 0x%8p %lu", data, (long)datalen); for (i = (datalen / sizeof (char *)), cur = (const char **)data ; i > 0 ; cur++, i --) { - LOGD("> '%s'", *cur); + ALOGD("> '%s'", *cur); } // echo back strings |