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
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 @@
// 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 @@
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 @@
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 @@
return -1;
}
}
+#if VDBG
RLOGE("RIL Response bytes written:%d", writeOffset);
+#endif
return 0;
}
@@ -2128,7 +2137,9 @@
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 @@
}
#endif
#endif
+#if VDBG
RLOGD("RequestComplete, %s", rilSocketIdToString(socket_id));
+#endif
if (pRI->local > 0) {
// Locally issued command...void only!
@@ -4948,7 +4961,9 @@
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) {