From 3c64bdf9a45d5beb35303efcd6892a65ae1b7606 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 23 Mar 2016 14:43:39 +0100 Subject: [PATCH] spp_streamer: fix compile warning --- example/spp_streamer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/spp_streamer.c b/example/spp_streamer.c index b0235a9cc..fd8080194 100644 --- a/example/spp_streamer.c +++ b/example/spp_streamer.c @@ -113,7 +113,7 @@ static void test_track_sent(int bytes_sent){ if (time_passed < REPORT_INTERVAL_MS) return; // print speed int bytes_per_second = test_data_sent * 1000 / time_passed; - printf("%u bytes sent-> %u.%03u kB/s\n", test_data_sent, bytes_per_second / 1000, bytes_per_second % 1000); + printf("%u bytes sent-> %u.%03u kB/s\n", (int) test_data_sent, (int) bytes_per_second / 1000, bytes_per_second % 1000); // restart test_data_start = now;