From b0732b7a06bb74a0af2aa8c85aad4c49d8cb4693 Mon Sep 17 00:00:00 2001 From: bradleysmith23 Date: Tue, 21 Nov 2023 14:07:02 -0800 Subject: [PATCH] add typecast for Logging --- source/core_mqtt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core_mqtt.c b/source/core_mqtt.c index 738572eaf..8b72c5d17 100644 --- a/source/core_mqtt.c +++ b/source/core_mqtt.c @@ -2612,7 +2612,7 @@ MQTTStatus_t MQTT_InitStatefulQoS( MQTTContext_t * pContext, LogError( ( "Arguments do not match: pOutgoingPublishRecords=%p, " "outgoingPublishCount=%lu", ( void * ) pOutgoingPublishRecords, - outgoingPublishCount ) ); + ( unsigned long ) outgoingPublishCount ) ); status = MQTTBadParameter; } @@ -2624,7 +2624,7 @@ MQTTStatus_t MQTT_InitStatefulQoS( MQTTContext_t * pContext, LogError( ( "Arguments do not match: pIncomingPublishRecords=%p, " "incomingPublishCount=%lu", ( void * ) pIncomingPublishRecords, - incomingPublishCount ) ); + ( unsigned long ) incomingPublishCount ) ); status = MQTTBadParameter; } else if( pContext->appCallback == NULL )