diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2023-09-27 16:28:16 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2023-10-06 12:37:34 +0530 |
commit | 3aa872546783b146d821bbce6b1507aa33b77fc9 (patch) | |
tree | 68982b1ed313fb9c18e7f42224323665689ce4d5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | cca14de56986905013a83df4e512358b9c6a54a8 (diff) |
OPP: debugfs: Fix warning with W=1 builds
We currently get the following warning:
debugfs.c: In function ‘opp_debug_create_one’:
debugfs.c:63:42: warning: ‘%.1d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=]
snprintf(name, sizeof(name), "icc-path-%.1d", i);
^~~~
debugfs.c:63:32: note: directive argument in the range [0, 2147483647]
snprintf(name, sizeof(name), "icc-path-%.1d", i);
^~~~~~~~~~~~~~~
debugfs.c:63:3: note: ‘snprintf’ output between 11 and 20 bytes into a destination of size 11
snprintf(name, sizeof(name), "icc-path-%.1d", i);
Fix it by increasing size of the `name` array.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions