diff options
| author | Zhang Chujun <zhangchujun@cmss.chinamobile.com> | 2025-11-06 11:30:56 +0800 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2025-11-19 15:00:14 -0700 |
| commit | 26347f844381a5ae870b51efb8a927bc35ab7d42 (patch) | |
| tree | 8b9fefa7fb0f71642ffa06ee975559501ac1cbbc /tools/lib/python/kdoc/kdoc_files.py | |
| parent | 37f46601383aa5a19bd42ea99617fa0fa6215f77 (diff) | |
selftests/dma: fix invalid array access in printf
The printf statement attempts to print the DMA direction string using
the syntax 'dir[directions]', which is an invalid array access. The
variable 'dir' is an integer, and 'directions' is a char pointer array.
This incorrect syntax should be 'directions[dir]', using 'dir' as the
index into the 'directions' array. Fix this by correcting the array
access from 'dir[directions]' to 'directions[dir]'.
Link: https://lore.kernel.org/r/20251104025234.2363-1-zhangchujun@cmss.chinamobile.com
Signed-off-by: Zhang Chujun <zhangchujun@cmss.chinamobile.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
