Skip to content

Commit c1235bb

Browse files
Tom Finetcarlescufi
authored andcommitted
net: http: fix %d format string to %zu
Fixes logging of size_t variable to work on both 32 and 64 bit platforms. Signed-off-by: Tom Finet <[email protected]>
1 parent 911abc3 commit c1235bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/http/http_server_http1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ int handle_http1_static_fs_resource(struct http_resource_detail_static_fs *stati
330330
}
331331
}
332332

333-
LOG_DBG("found %s, file size: %d", fname, file_size);
333+
LOG_DBG("found %s, file size: %zu", fname, file_size);
334334

335335
/* send HTTP header */
336336
len = snprintk(http_response, sizeof(http_response), RESPONSE_TEMPLATE_STATIC_FS,

0 commit comments

Comments
 (0)