From 0e1473d188baa57226f08fbab1795e47da7a6768 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 26 Nov 2014 14:11:40 +0100 Subject: [PATCH] android/client: Use proper format specifier for printing uint64_t Fix following compiler warning: android/client/if-bt.c: In function 'set_wake_alarm': android/client/if-bt.c:369:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64_t' [-Wformat=] __func__, delay_millis, should_wake, cb, data); ^ --- android/client/if-bt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/client/if-bt.c b/android/client/if-bt.c index 327fa86b9..b4312f045 100644 --- a/android/client/if-bt.c +++ b/android/client/if-bt.c @@ -16,6 +16,7 @@ */ #include +#include #include "if-main.h" #include "terminal.h" @@ -365,7 +366,7 @@ static void *alarm_cb_p_data = NULL; static bool set_wake_alarm(uint64_t delay_millis, bool should_wake, alarm_cb cb, void *data) { - haltest_info("%s: delay %lu should_wake %u cb %p data %p\n", + haltest_info("%s: delay %"PRIu64" should_wake %u cb %p data %p\n", __func__, delay_millis, should_wake, cb, data); /* TODO call alarm callback after specified delay */ -- 2.47.3