diff options
author | 2025-05-03 01:50:25 +0800 | |
---|---|---|
committer | 2025-05-05 16:55:15 -0700 | |
commit | 953d9480f7d1bee0ec00c7c23ec4d3b33f585ed1 (patch) | |
tree | 8699c74aa104bd6f8072aac20317aae890027208 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'selftests-mptcp-increase-code-coverage' (diff) | |
download | wireguard-linux-953d9480f7d1bee0ec00c7c23ec4d3b33f585ed1.tar.xz wireguard-linux-953d9480f7d1bee0ec00c7c23ec4d3b33f585ed1.zip |
selftests: iou-zcrx: Clean up build warnings for error format
Clean up two build warnings:
[1]
iou-zcrx.c: In function ‘process_recvzc’:
iou-zcrx.c:263:37: warning: too many arguments for format [-Wformat-extra-args]
263 | error(1, 0, "payload mismatch at ", i);
| ^~~~~~~~~~~~~~~~~~~~~~
[2] Use "%zd" for ssize_t type as better
iou-zcrx.c: In function ‘run_client’:
iou-zcrx.c:357:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
357 | error(1, 0, "send(): %d", sent);
| ~^ ~~~~
| | |
| int ssize_t {aka long int}
| %ld
Signed-off-by: Haiyue Wang <haiyuewa@163.com>
Reviewed-by: David Wei <dw@davidwei.uk>
Link: https://patch.msgid.link/20250502175136.1122-1-haiyuewa@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions