summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2015-04-18 17:41:09 +0000
committertakawata <takawata@FreeBSD.org>2015-04-18 17:41:09 +0000
commit739c19f61930e1fb44b770695f0faef630e0fd48 (patch)
treee060996cb16db29e63604989f8816cac47065840
parenta44c3e29f1f2a11dff76293a923c224474273f9e (diff)
downloadFreeBSD-src-739c19f61930e1fb44b770695f0faef630e0fd48.zip
FreeBSD-src-739c19f61930e1fb44b770695f0faef630e0fd48.tar.gz
To ensure j formatting string valid, cast uint64_t values to uintmax_t.
-rw-r--r--usr.sbin/bluetooth/hccontrol/le.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/le.c b/usr.sbin/bluetooth/hccontrol/le.c
index 29004ef..afb151e 100644
--- a/usr.sbin/bluetooth/hccontrol/le.c
+++ b/usr.sbin/bluetooth/hccontrol/le.c
@@ -43,6 +43,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <stdint.h>
#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include "hccontrol.h"
@@ -233,7 +234,7 @@ le_read_local_supported_features(int s, int argc ,char *argv[])
(void *)&rp, &n);
printf("LOCAL SUPPORTED: %d %d %jx\n", e, rp.status,
- rp.le_features);
+ (uintmax_t) rp.le_features);
return 0;
}
@@ -250,7 +251,7 @@ le_read_supported_status(int s, int argc, char *argv[])
NG_HCI_OCF_LE_READ_SUPPORTED_STATUS),
(void *)&rp, &n);
- printf("LE_STATUS: %d %d %jx\n", e, rp.status, rp.le_status);
+ printf("LE_STATUS: %d %d %jx\n", e, rp.status, (uintmax_t)rp.le_status);
return 0;
}
OpenPOWER on IntegriCloud