aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2015-04-18 17:41:09 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2015-04-18 17:41:09 +0000
commit4cae2db2a89ed89cf607e3c598f5eb077ef2c8f7 (patch)
treee060996cb16db29e63604989f8816cac47065840 /usr.sbin
parentad8b1d857de87353993df347036353a8609019f3 (diff)
downloadsrc-4cae2db2a89ed89cf607e3c598f5eb077ef2c8f7.tar.gz
src-4cae2db2a89ed89cf607e3c598f5eb077ef2c8f7.zip
To ensure j formatting string valid, cast uint64_t values to uintmax_t.
Notes
Notes: svn path=/head/; revision=281697
Diffstat (limited to 'usr.sbin')
-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 29004ef3a8e9..afb151e71ad2 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;
}