diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2015-04-29 16:57:39 -0700 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2015-10-19 12:16:41 -0700 |
commit | bc29c4398883277503ee0f3a2ee4c64406db3c3f (patch) | |
tree | efe8fc2ecabb50ceb4d8e9aba8dca03f7002012b | |
parent | 9bdede058f3ea58d22bc37578c8c27f46a694e05 (diff) | |
download | android_hardware_samsung-bc29c4398883277503ee0f3a2ee4c64406db3c3f.tar.gz android_hardware_samsung-bc29c4398883277503ee0f3a2ee4c64406db3c3f.tar.bz2 android_hardware_samsung-bc29c4398883277503ee0f3a2ee4c64406db3c3f.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-- | ril/libril/ril.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp index 9f30999..9d942c3 100644 --- a/ril/libril/ril.cpp +++ b/ril/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 @@ -921,7 +924,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 @@ -999,7 +1004,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 @@ -2117,7 +2124,9 @@ blockingWrite(int fd, const void *buffer, size_t len) { return -1; } } +#if VDBG RLOGE("RIL Response bytes written:%d", writeOffset); +#endif return 0; } @@ -2128,7 +2137,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) { @@ -4655,7 +4666,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! @@ -4948,7 +4961,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) { |