OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee82f7
)
Remove memory reference to invalid mem in error log
author
Stanley Tng
<stng@google.com>
Wed, 10 Jan 2018 21:13:15 +0000
(13:13 -0800)
committer
Moritz Horstmann
<dev@peterzweg.at>
Thu, 8 Mar 2018 13:02:41 +0000
(14:02 +0100)
Remove the memory reference to an invalid memory inside an error log
message.
Test: Edit code to force the error condition and make sure the new error
log does not crashed.
Bug:
67058064
Merged-In: I55ec6d8b53e5987cd7721e0ae3ffccc11d6638a0
Change-Id: I55ec6d8b53e5987cd7721e0ae3ffccc11d6638a0
(cherry picked from commit
11cd7277a1d0da9013a8381cddbfc096e9adaed6
)
(cherry picked from commit
d10bc94f5ec64122382ed73a261c5f4d0a0fa195
)
(cherry picked from commit
49a57cd2346a716eca07153ac83026787fb9d03a
)
stack/smp/smp_utils.c
patch
|
blob
|
history
diff --git
a/stack/smp/smp_utils.c
b/stack/smp/smp_utils.c
index
a7357db
..
675cb42
100644
(file)
--- a/
stack/smp/smp_utils.c
+++ b/
stack/smp/smp_utils.c
@@
-297,8
+297,7
@@
BOOLEAN smp_send_msg_to_L2CAP(BD_ADDR rem_bda, BT_HDR *p_toL2CAP)
if ((l2cap_ret = L2CA_SendFixedChnlData (fixed_cid, rem_bda, p_toL2CAP)) == L2CAP_DW_FAILED)
{
smp_cb.total_tx_unacked -= 1;
- SMP_TRACE_ERROR("SMP failed to pass msg:0x%0x to L2CAP",
- *((UINT8 *)(p_toL2CAP + 1) + p_toL2CAP->offset));
+ SMP_TRACE_ERROR("SMP failed to pass msg to L2CAP");
return FALSE;
}
else