diff options
| author | Roopni Devanathan <quic_rdevanat@quicinc.com> | 2024-10-04 14:29:15 +0530 |
|---|---|---|
| committer | Jeff Johnson <quic_jjohnson@quicinc.com> | 2024-10-07 14:07:35 -0700 |
| commit | e985dc55029707b7019819d570bae4225effd2e4 (patch) | |
| tree | beb828fc906118627b9f8be674d857172f25a662 /tools/perf/scripts/python | |
| parent | wifi: ath12k: fix use-after-free in ath12k_dp_cc_cleanup() (diff) | |
| download | linux-e985dc55029707b7019819d570bae4225effd2e4.tar.gz linux-e985dc55029707b7019819d570bae4225effd2e4.zip | |
wifi: ath12k: Modify print_array_to_buf() to support arrays with 1-based semantics
The API print_array_to_buf() currently supports printing
arrays with 0 indexing. In some cases, a few arrays need
to be printed with 1-based indexing, i.e., array should be
printed, starting with 1.
Add a new version of print_array_to_buf(), named
print_array_to_buf_index(), which implements the functionality
of print_array_to_index(), but with an extra variable, pointing
to the index starting with which the array should be printed.
Modify print_array_to_buf() to call
print_array_to_buf_index() with 0 as the starting index.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com>
Link: https://patch.msgid.link/20241004085915.1788951-1-quic_rdevanat@quicinc.com
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
