Skip to content

Commit a02414a

Browse files
jukkarjhedberg
authored andcommitted
net: zperf: Use %zd when printing size_t variable
Wrong printf format was using for size_t variable which caused compiler warning and a failure. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent ff2e9b5 commit a02414a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/zperf/zperf_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static int zperf_init(void)
304304
#define MAX_NAME_LEN sizeof("zperf_work_q[xxx]")
305305
char name[MAX_NAME_LEN];
306306

307-
snprintk(name, sizeof(name), "zperf_work_q[%d]", i);
307+
snprintk(name, sizeof(name), "zperf_work_q[%zd]", i);
308308
cfg.name = name;
309309

310310
k_work_queue_init(zperf_work_q[i].queue);

0 commit comments

Comments
 (0)