diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-11-26 14:11:40 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-26 14:14:48 +0100 |
commit | 0e1473d188baa57226f08fbab1795e47da7a6768 (patch) | |
tree | 2be9f0276922b69882b74a630fbd9c179975e100 /android/client | |
parent | b5a5d2d81affbd38826c41dcefc9209b057e9a2e (diff) | |
download | bluez-0e1473d188baa57226f08fbab1795e47da7a6768.tar.gz |
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);
^
Diffstat (limited to 'android/client')
-rw-r--r-- | android/client/if-bt.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <string.h> +#include <inttypes.h> #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 */ |