Mqtt test : fixed nrf5 compile issue
#include "stdint.h" // int32_t etc.
#include "stdbool.h"
#include "stdlib.h" // malloc(), free()
+#include "inttypes.h" // PRIu32 etc
// Must always be included before u_short_range_test_selector.h
//lint -efile(766, u_wifi_module_type.h)
@@ -308,7 +309,7 @@ static int32_t wifiMqttUnsubscribeTest(bool isSecuredConnection)
topicId1 = rand();
// Make a unique topic name to stop different boards colliding
snprintf(pTopicOut1, U_MQTT_CLIENT_TEST_READ_TOPIC_MAX_LENGTH_BYTES,
- "ubx_test/%d", topicId1);
+ "ubx_test/%"PRIu32"", topicId1);
mqttClientCtx = NULL;
@@ -454,12 +455,12 @@ static int32_t wifiMqttPublishSubscribeTest(bool isSecuredConnection)
topicId1 = rand();
// Make a unique topic name to stop different boards colliding
snprintf(pTopicOut1, U_MQTT_CLIENT_TEST_READ_TOPIC_MAX_LENGTH_BYTES,
- "ubx_test/%d", topicId1);
+ "ubx_test/%"PRIu32"", topicId1);
topicId2 = rand();
// Make a unique topic name to stop different boards colliding
snprintf(pTopicOut2, U_MQTT_CLIENT_TEST_READ_TOPIC_MAX_LENGTH_BYTES,
- "ubx_test/%d", topicId2);
+ "ubx_test/%"PRIu32"", topicId2);
mqttClientCtx = NULL;
