diff options
author | Takashi Iwai <tiwai@suse.de> | 2023-09-15 10:22:07 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-15 13:16:25 +0100 |
commit | 925819c7969cc1453a3e8125787942d6127fa002 (patch) | |
tree | 5ef4b08b366c6c542819a819c26b6de8954e6d9e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 74d71f628db99987d43d242ea4d3631ef0a906d0 (diff) |
ASoC: amd: ps: Fix -Wformat-truncation warning
The compile warning with -Wformat-truncation at
sdw_amd_scan_controller() is false-positive; the max loop size is
AMD_SDW_MAX_MANAGERS (= 2), hence it fits with the given size.
For suppressing the warning, replace snprintf() with scnprintf().
As stated in the above, truncation doesn't matter.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20230915082207.26200-1-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions