Commit 8256c6e0 authored by Alexis La Goutte's avatar Alexis La Goutte

libevent-client: fix Incorrect format found by PVS Studio (V576)

Consider checking the fourth actual argument of the 'fprintf' function. The SIGNED integer type argument is expected.
parent ae87a44b
......@@ -287,7 +287,7 @@ static int on_stream_close_callback(nghttp2_session *session, int32_t stream_id,
int rv;
if (session_data->stream_data->stream_id == stream_id) {
fprintf(stderr, "Stream %d closed with error_code=%d\n", stream_id,
fprintf(stderr, "Stream %d closed with error_code=%u\n", stream_id,
error_code);
rv = nghttp2_session_terminate_session(session, NGHTTP2_NO_ERROR);
if (rv != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment