Skip to content

Commit 5dd0223

Browse files
committed
Fix build errors left in logging.
1 parent bb34fe2 commit 5dd0223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/core_http_client.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ static HTTPStatus_t sendHttpData( const TransportInterface_t * pTransport,
17861786
/* It is a bug in the application's transport send implementation if
17871787
* more bytes than expected are sent. To avoid a possible overflow
17881788
* in converting bytesRemaining from unsigned to signed, this assert
1789-
* must exist after the check for transportStatus being negative. */
1789+
* must exist after the check for bytesSent being negative. */
17901790
assert( ( size_t ) bytesSent <= bytesRemaining );
17911791

17921792
/* Record the most recent time of successful transmission. */
@@ -2002,7 +2002,7 @@ static HTTPStatus_t receiveAndParseHttpResponse( const TransportInterface_t * pT
20022002
{
20032003
LogError( ( "Failed to receive HTTP data: Transport recv() "
20042004
"returned error: TransportStatus=%ld",
2005-
( long int ) transportStatus ) );
2005+
( long int ) bytesSent ) );
20062006
returnStatus = HTTPNetworkError;
20072007

20082008
/* Do not invoke the parser on network errors. */

0 commit comments

Comments
 (0)