Author: takawata
Date: Sat Apr 18 17:41:09 2015
New Revision: 281697
URL: https://svnweb.freebsd.org/changeset/base/281697
Log:
To ensure j formatting string valid, cast uint64_t values to uintmax_t.
Modified:
head/usr.sbin/bluetooth/hccontrol/le.c
Modified: head/usr.sbin/bluetooth/hccontrol/le.c
==============================================================================
--- head/usr.sbin/bluetooth/hccontrol/le.c Sat Apr 18 17:21:12 2015
(r281696)
+++ head/usr.sbin/bluetooth/hccontrol/le.c Sat Apr 18 17:41:09 2015
(r281697)
@@ -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,
(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
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;
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"