diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2015-04-29 16:57:39 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2015-04-30 00:56:58 +0000 |
commit | 191e4dc982754d2f4662bc80bf1a76c5d933565a (patch) | |
tree | 40daacc0662399dd6015db33979d04a311503264 | |
parent | f461c04d91bf4558ad8199946048f4124716d5fe (diff) | |
download | android_hardware_ril-191e4dc982754d2f4662bc80bf1a76c5d933565a.tar.gz android_hardware_ril-191e4dc982754d2f4662bc80bf1a76c5d933565a.tar.bz2 android_hardware_ril-191e4dc982754d2f4662bc80bf1a76c5d933565a.zip |
Remove verbose logs
Several things are redundent except for the fact
messages are reaching rilc. Left in in case we need to debug
the layer, but blocked out with #if VDBG
Reduces startup logging to radio buffer by 20%
Change-Id: I95099457ea365ee108e7da8e1f81434531b6b9f0
-rw-r--r-- | libril/ril.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp index a044049..aa82e7f 100644 --- a/libril/ril.cpp +++ b/libril/ril.cpp @@ -89,6 +89,9 @@ namespace android { // request, response, and unsolicited msg print macro #define PRINTBUF_SIZE 8096 +// Enable verbose logging +#define VDBG 0 + // Enable RILC log #define RILC_LOG 0 @@ -858,7 +861,9 @@ dispatchSIM_IO (Parcel &p, RequestInfo *pRI) { int size; status_t status; +#if VDBG RLOGD("dispatchSIM_IO"); +#endif memset (&simIO, 0, sizeof(simIO)); // note we only check status at the end @@ -936,7 +941,9 @@ dispatchSIM_APDU (Parcel &p, RequestInfo *pRI) { status_t status; RIL_SIM_APDU apdu; +#if VDBG RLOGD("dispatchSIM_APDU"); +#endif memset (&apdu, 0, sizeof(RIL_SIM_APDU)); // Note we only check status at the end. Any single failure leads to @@ -2054,7 +2061,9 @@ blockingWrite(int fd, const void *buffer, size_t len) { return -1; } } +#if VDBG RLOGE("RIL Response bytes written:%d", writeOffset); +#endif return 0; } @@ -2065,7 +2074,9 @@ sendResponseRaw (const void *data, size_t dataSize, RIL_SOCKET_ID socket_id) { uint32_t header; pthread_mutex_t * writeMutexHook = &s_writeMutex; +#if VDBG RLOGE("Send Response to %s", rilSocketIdToString(socket_id)); +#endif #if (SIM_COUNT >= 2) if (socket_id == RIL_SOCKET_2) { @@ -4477,7 +4488,9 @@ RIL_onRequestComplete(RIL_Token t, RIL_Errno e, void *response, size_t responsel } #endif #endif +#if VDBG RLOGD("RequestComplete, %s", rilSocketIdToString(socket_id)); +#endif if (pRI->local > 0) { // Locally issued command...void only! @@ -4759,7 +4772,9 @@ void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, break; } +#if VDBG RLOGI("%s UNSOLICITED: %s length:%d", rilSocketIdToString(soc_id), requestToString(unsolResponse), p.dataSize()); +#endif ret = sendResponse(p, soc_id); if (ret != 0 && unsolResponse == RIL_UNSOL_NITZ_TIME_RECEIVED) { |