mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacld-3.0: Use hex dump instead of printing WOW pattern
Currently in the driver, we are printing the WOW pattern to the kernel logs. This pattern is an array and printing it one by one can lead to excessive logging. Instead of printing one by one, use qdf_trace_hex_dump() to print the pattern in one go. Also move the logging from kernel to the driver logs. Change-Id: I6a3b02b0e57d8c27bb5ea4a7c44f67634c0f33fd CRs-Fixed: 2661242
This commit is contained in:
parent
fa85d03310
commit
32bc20bc53
1 changed files with 12 additions and 13 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -59,18 +59,17 @@ static inline int find_ptrn_len(const char *ptrn)
|
|||
*/
|
||||
static void dump_hdd_wowl_ptrn(struct pmo_wow_add_pattern *ptrn)
|
||||
{
|
||||
int i;
|
||||
|
||||
hdd_info("Pattern Id = 0x%x", ptrn->pattern_id);
|
||||
hdd_info("Pattern Byte Offset = 0x%x", ptrn->pattern_byte_offset);
|
||||
hdd_info("Pattern_size = 0x%x", ptrn->pattern_size);
|
||||
hdd_info("Pattern_mask_size = 0x%x", ptrn->pattern_mask_size);
|
||||
hdd_info("Pattern: ");
|
||||
for (i = 0; i < ptrn->pattern_size; i++)
|
||||
hdd_info(" %02X", ptrn->pattern[i]);
|
||||
hdd_info("pattern_mask: ");
|
||||
for (i = 0; i < ptrn->pattern_mask_size; i++)
|
||||
hdd_info("%02X", ptrn->pattern_mask[i]);
|
||||
hdd_debug("Dumping WOW pattern");
|
||||
hdd_nofl_debug("Pattern Id = 0x%x", ptrn->pattern_id);
|
||||
hdd_nofl_debug("Pattern Byte Offset = 0x%x", ptrn->pattern_byte_offset);
|
||||
hdd_nofl_debug("Pattern_size = 0x%x", ptrn->pattern_size);
|
||||
hdd_nofl_debug("Pattern_mask_size = 0x%x", ptrn->pattern_mask_size);
|
||||
hdd_nofl_debug("Pattern: ");
|
||||
qdf_trace_hex_dump(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_DEBUG,
|
||||
ptrn->pattern, ptrn->pattern_size);
|
||||
hdd_nofl_debug("pattern_mask: ");
|
||||
qdf_trace_hex_dump(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_DEBUG,
|
||||
ptrn->pattern_mask, ptrn->pattern_mask_size);
|
||||
}
|
||||
|
||||
static QDF_STATUS
|
||||
|
|
|
|||
Loading…
Reference in a new issue