libril: fix compilation with debugging enabled

Change-Id: Iac159175a23b2810e56c38fb82cae58c20dddb8e
tirimbino
forkbomb 9 years ago
parent dbf394e847
commit e0568e128b
  1. 12
      ril/libril/ril.cpp

@ -101,8 +101,8 @@ namespace android {
#if RILC_LOG
#define startRequest sprintf(printBuf, "(")
#define closeRequest sprintf(printBuf, "%s)", printBuf)
#define printRequest(token, req) \
RLOGD("[%04d]> %s %s", token, requestToString(req), printBuf)
#define printRequest(token, req) \
RLOGD("[%04d]> %s %s", token, requestToString(req), printBuf)
#define startResponse sprintf(printBuf, "%s {", printBuf)
#define closeResponse sprintf(printBuf, "%s}", printBuf)
@ -3808,8 +3808,8 @@ static int responseLceData(Parcel &p, void *response, size_t responselen) {
p.write((void *)&(p_cur->lce_suspended), 1);
startResponse;
appendPrintBuf("LCE info received: capacity %d confidence level %d
and suspended %d",
appendPrintBuf("LCE info received: capacity %d confidence level %d"
"and suspended %d",
p_cur->last_hop_capacity_kbps, p_cur->confidence_level,
p_cur->lce_suspended);
closeResponse;
@ -3838,8 +3838,8 @@ static int responseActivityData(Parcel &p, void *response, size_t responselen) {
p.writeInt32(p_cur->rx_mode_time_ms);
startResponse;
appendPrintBuf("Modem activity info received: sleep_mode_time_ms %d idle_mode_time_ms %d
tx_mode_time_ms %d %d %d %d %d and rx_mode_time_ms %d",
appendPrintBuf("Modem activity info received: sleep_mode_time_ms %d idle_mode_time_ms %d"
"tx_mode_time_ms %d %d %d %d %d and rx_mode_time_ms %d",
p_cur->sleep_mode_time_ms, p_cur->idle_mode_time_ms, p_cur->tx_mode_time_ms[0],
p_cur->tx_mode_time_ms[1], p_cur->tx_mode_time_ms[2], p_cur->tx_mode_time_ms[3],
p_cur->tx_mode_time_ms[4], p_cur->rx_mode_time_ms);

Loading…
Cancel
Save