aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorFawzi Khaber <[email protected]>2022-07-18 15:07:06 +0200
committerJonathan Cameron <[email protected]>2022-07-19 09:31:27 +0100
commit5e1f91850365de55ca74945866c002fda8f00331 (patch)
tree3da490e58bd335973e5ebf5d8f0e30953d3d9de3 /tools/perf/scripts/python/task-analyzer.py
parent06ee60eb507f00fb3643876ec05318c63332dc88 (diff)
iio: fix iio_format_avail_range() printing for none IIO_VAL_INT
iio_format_avail_range() should print range as follow [min, step, max], so the function was previously calling iio_format_list() with length = 3, length variable refers to the array size of values not the number of elements. In case of non IIO_VAL_INT values each element has integer part and decimal part. With length = 3 this would cause premature end of loop and result in printing only one element. Signed-off-by: Fawzi Khaber <[email protected]> Signed-off-by: Jean-Baptiste Maneyrol <[email protected]> Fixes: eda20ba1e25e ("iio: core: Consolidate iio_format_avail_{list,range}()") Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions