OSDN Git Service

Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq
authorChris Manton <cmanton@google.com>
Thu, 12 Nov 2020 00:44:15 +0000 (16:44 -0800)
committerChris Manton <cmanton@google.com>
Thu, 12 Nov 2020 17:17:17 +0000 (09:17 -0800)
Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I407f9aa305a8e70c23a1b83a898684f2798a5a32

stack/l2cap/l2c_api.cc

index a7163ce..bbc1ed2 100644 (file)
@@ -877,15 +877,15 @@ bool L2CA_DisconnectReq(uint16_t cid) {
 
   tL2C_CCB* p_ccb;
 
-  L2CAP_TRACE_API("L2CA_DisconnectReq()  CID: 0x%04x", cid);
-
   /* Find the channel control block. We don't know the link it is on. */
   p_ccb = l2cu_find_ccb_by_cid(NULL, cid);
   if (p_ccb == NULL) {
-    L2CAP_TRACE_WARNING("L2CAP - no CCB for L2CA_disc_req, CID: %d", cid);
+    LOG_WARN("L2CAP - no CCB for L2CA_disc_req, CID: %d", cid);
     return (false);
   }
 
+  LOG_DEBUG("L2CAP Local disconnect request CID: 0x%04x", cid);
+
   l2c_csm_execute(p_ccb, L2CEVT_L2CA_DISCONNECT_REQ, NULL);
 
   return (true);