summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Jeon <dennis.jeon@broadcom.corp-partner.google.com>2023-01-03 20:30:47 +0900
committerIsaac Chiou <isaacchiou@google.com>2023-01-05 12:54:43 +0000
commit923c48152572a65bb7469f30d2df8ea3238dfdbb (patch)
tree1646457721917bb82ec8caec80ac1cff7b362b76
parent577c5c01b4bc94fdb8de0f334e59a3c42503e37d (diff)
downloadbcm4389-923c48152572a65bb7469f30d2df8ea3238dfdbb.tar.gz
The memdump with the reason LOGSET_BEYOND_RANGE was triggered frequently in some cases. The change is to check LSB 6 bits to get the set number. it should help to reduce the number of issues in their data server. Bug: 263661001 Change-Id: I508f3c0782886ab615352915f5fb21e2157947be Signed-off-by: Dennis Jeon <dennis.jeon@broadcom.corp-partner.google.com>
-rw-r--r--dhd_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhd_debug.c b/dhd_debug.c
index 79878a4..a7f4933 100644
--- a/dhd_debug.c
+++ b/dhd_debug.c
@@ -1119,11 +1119,11 @@ dhd_dbg_msgtrace_log_parser(dhd_pub_t *dhdp, void *event_data,
* event log buffer. Refer to event log buffer structure in
* event_log.h
*/
+ logset = (ltoh32(*((uint32 *)(data + 4))) & EVENT_LOG_SETID_MASK);
+
DHD_MSGTRACE_LOG(("EVENT_LOG_HDR[0x%x]: Set: 0x%08x length = %d\n",
- ltoh16(*((uint16 *)(data+2))), ltoh32(*((uint32 *)(data + 4))),
- ltoh16(*((uint16 *)(data)))));
+ ltoh16(*((uint16 *)(data+2))), logset, ltoh16(*((uint16 *)(data)))));
- logset = ltoh32(*((uint32 *)(data + 4)));
block_hdr_len = ltoh16(*((uint16 *)(data)));
if (logset >= event_log_max_sets) {