Fix out-of-bound array access in jv handle err log
am: 3ddadcf4b0
Change-Id: I2627ad5a4e864f520f340b9690ca3be2d4fd9681
diff --git a/bta/jv/bta_jv_act.cc b/bta/jv/bta_jv_act.cc
index 8f5bdc8..f34021f 100644
--- a/bta/jv/bta_jv_act.cc
+++ b/bta/jv/bta_jv_act.cc
@@ -242,10 +242,8 @@
handle &= ~BTA_JV_RFCOMM_MASK;
if (handle) p_cb = &bta_jv_cb.rfc_cb[handle - 1];
} else {
- APPL_TRACE_WARNING(
- "bta_jv_rfc_port_to_cb(port_handle:0x%x):jv handle:0x%x not"
- " FOUND",
- port_handle, bta_jv_cb.port_cb[port_handle - 1].handle);
+ APPL_TRACE_WARNING("%s (port_handle:0x%x):jv handle not found", __func__,
+ port_handle);
}
return p_cb;
}