From 47725a8e7b284f3b19dfc291fffbdc0c751162a0 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 7 May 2015 22:48:33 +0200 Subject: [PATCH] use PRIu32 from inttypes.h to print 32 bit unsigned numbers --- example/embedded/spp_and_le_counter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/embedded/spp_and_le_counter.c b/example/embedded/spp_and_le_counter.c index 2326b7cb7..26cc88975 100644 --- a/example/embedded/spp_and_le_counter.c +++ b/example/embedded/spp_and_le_counter.c @@ -50,7 +50,8 @@ #include #include #include - +#include + #include "btstack-config.h" #include @@ -173,7 +174,7 @@ static void packet_handler (void * connection, uint8_t packet_type, uint16_t cha case HCI_EVENT_USER_CONFIRMATION_REQUEST: // inform about user confirmation request - printf("SSP User Confirmation Request with numeric value '%06u'\n", READ_BT_32(packet, 8)); + printf("SSP User Confirmation Request with numeric value '%06"PRIu32"'\n", READ_BT_32(packet, 8)); printf("SSP User Confirmation Auto accept\n"); break;