Ganesh Murthy created DISPATCH-2215:
---------------------------------------
Summary: [http2] Wrong printf format specifier in
read_data_callback
Key: DISPATCH-2215
URL: https://issues.apache.org/jira/browse/DISPATCH-2215
Project: Qpid Dispatch
Issue Type: Improvement
Reporter: Ganesh Murthy
Assignee: Ganesh Murthy
{noformat}
*** CID 372166: API usage errors (PRINTF_ARGS)
/home/kgiusti/work/dispatch/qpid-dispatch/src/adaptors/http2/http2_adaptor.c:
1340 in read_data_callback()
1334 stream_data->full_payload_handled =
false;
1335 }
1336 else {
1337 bytes_to_send =
remaining_payload_length;
1338 set_buffers_to_send(stream_data,
bytes_to_send);
1339 stream_data->full_payload_handled =
true;
>>> CID 372166: API usage errors (PRINTF_ARGS)
>>> Argument "remaining_payload_length" to format specifier "%zu" was
>>> expected to have type "size_t"("unsigned long") but has type "int".
1340
qd_log(http2_adaptor->protocol_log_source, QD_LOG_TRACE,
"[C%"PRIu64"][S%"PRId32"] read_data_callback remaining_payload_length (%zu) <=
QD_HTTP2_BUFFER_SIZE(16384), bytes_to_send=%zu,
stream_data->qd_buffers_to_send=%zu", conn->conn_id, stream_data->stream_id,
remaining_payload_length, bytes_to_send, stream_data->qd_buffers_to_send);
1341
1342 // Look ahead one body data
1343 stream_data->next_stream_data_result =
qd_message_next_stream_data(message, &stream_data->next_stream_data);
1344 if (stream_data->next_stream_data_result ==
QD_MESSAGE_STREAM_DATA_NO_MORE) {
1345 *data_flags |=
NGHTTP2_DATA_FLAG_EOF;{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]