ril: Fix compilation with debug messages turned on

Change-Id: Ifabf416ebdfe681e63df1d127567d0ef54cfc0ec
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
tirimbino
Andreas Schneider 10 years ago
parent 50db0ed6de
commit a8d0950e22
  1. 12
      ril/libril/ril.cpp

@ -1766,7 +1766,7 @@ static void dispatchSetInitialAttachApn(Parcel &p, RequestInfo *pRI)
startRequest; startRequest;
appendPrintBuf("%sapn=%s, protocol=%s, auth_type=%d, username=%s, password=%s", appendPrintBuf("%sapn=%s, protocol=%s, auth_type=%d, username=%s, password=%s",
printBuf, pf.apn, pf.protocol, pf.auth_type, pf.username, pf.password); printBuf, pf.apn, pf.protocol, pf.authtype, pf.username, pf.password);
closeRequest; closeRequest;
printRequest(pRI->token, pRI->pCI->requestNumber); printRequest(pRI->token, pRI->pCI->requestNumber);
@ -1937,7 +1937,7 @@ static void dispatchSimAuthentication(Parcel &p, RequestInfo *pRI)
pf.aid = strdupReadString(p); pf.aid = strdupReadString(p);
startRequest; startRequest;
appendPrintBuf("authContext=%s, authData=%s, aid=%s", pf.authContext, pf.authData, pf.aid); appendPrintBuf("authContext=%d, authData=%s, aid=%s", pf.authContext, pf.authData, pf.aid);
closeRequest; closeRequest;
printRequest(pRI->token, pRI->pCI->requestNumber); printRequest(pRI->token, pRI->pCI->requestNumber);
@ -2083,8 +2083,8 @@ static void dispatchRadioCapability(Parcel &p, RequestInfo *pRI){
startRequest; startRequest;
appendPrintBuf("%s [version:%d, session:%d, phase:%d, rat:%d, \ appendPrintBuf("%s [version:%d, session:%d, phase:%d, rat:%d, \
logicalModemUuid:%s, status:%d", printBuf, rc.version, rc.session logicalModemUuid:%s, status:%d", printBuf, rc.version, rc.session,
rc.phase, rc.rat, rc.logicalModemUuid, rc.session); rc.phase, rc.rat, rc.logicalModemUuid, rc.status);
closeRequest; closeRequest;
printRequest(pRI->token, pRI->pCI->requestNumber); printRequest(pRI->token, pRI->pCI->requestNumber);
@ -3449,7 +3449,7 @@ static int responseRadioCapability(Parcel &p, void *response, size_t responselen
startResponse; startResponse;
appendPrintBuf("%s[version=%d,session=%d,phase=%d,\ appendPrintBuf("%s[version=%d,session=%d,phase=%d,\
rat=%s,logicalModemUuid=%s,status=%d]", rat=%d,logicalModemUuid=%s,status=%d]",
printBuf, printBuf,
p_cur->version, p_cur->version,
p_cur->session, p_cur->session,
@ -3740,7 +3740,7 @@ static int responseDcRtInfo(Parcel &p, void *response, size_t responselen)
p.writeInt32(pDcRtInfo->powerState); p.writeInt32(pDcRtInfo->powerState);
appendPrintBuf("%s[time=%d,powerState=%d]", printBuf, appendPrintBuf("%s[time=%d,powerState=%d]", printBuf,
pDcRtInfo->time, pDcRtInfo->time,
pDcRtInfo->powerState); (int)pDcRtInfo->powerState);
closeResponse; closeResponse;
return 0; return 0;

Loading…
Cancel
Save