To ensure j formatting string valid, cast uint64_t values to uintmax_t.

This commit is contained in:
Takanori Watanabe 2015-04-18 17:41:09 +00:00
parent ad8b1d857d
commit 4cae2db2a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281697

View File

@ -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;
}