summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-04-24 11:22:47 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-04-24 11:22:47 +0000
commitfab001c1250c40ef96b85a60a7b8111596688452 (patch)
tree003c90b062aba3a6846ab0f3d1569ebc7d6a3e89 /tools
parentecbe15c8f763206abf39b17252ef8270f3d5b507 (diff)
Fix warning in hcisecfilter
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am2
-rw-r--r--tools/hcisecfilter.c16
2 files changed, 10 insertions, 8 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index c45f5635..c1eb4564 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -6,7 +6,7 @@ sbin_PROGRAMS = hciattach hciconfig hid2hci
bin_PROGRAMS = hcitool l2ping sdptool ciptool
-noinst_PROGRAMS = ppporc
+noinst_PROGRAMS = ppporc hcisecfilter
hciconfig_SOURCES = hciconfig.c csr.h csr.c
diff --git a/tools/hcisecfilter.c b/tools/hcisecfilter.c
index 2ff5c48a..9aaead0f 100644
--- a/tools/hcisecfilter.c
+++ b/tools/hcisecfilter.c
@@ -15,7 +15,7 @@ int main(void)
memset((void *)&type_mask, 0, sizeof(type_mask));
hci_set_bit(HCI_EVENT_PKT, &type_mask);
- printf("Type mask: { 0x%lx }\n", type_mask);
+ printf("Type mask: { 0x%x }\n", type_mask);
// Events
memset((void *)event_mask, 0, sizeof(event_mask));
@@ -36,7 +36,7 @@ int main(void)
hci_set_bit(EVT_READ_REMOTE_VERSION_COMPLETE, event_mask);
hci_set_bit(EVT_REMOTE_NAME_REQ_COMPLETE, event_mask);
- printf("Event mask: { 0x%lx, 0x%lx }\n", event_mask[0], event_mask[1]);
+ printf("Event mask: { 0x%x, 0x%x }\n", event_mask[0], event_mask[1]);
// OGF_LINK_CTL
memset((void *) ocf_mask, 0, sizeof(ocf_mask));
@@ -45,7 +45,7 @@ int main(void)
hci_set_bit(OCF_READ_REMOTE_FEATURES, ocf_mask);
hci_set_bit(OCF_READ_REMOTE_VERSION, ocf_mask);
- printf("OGF_LINK_CTL: { 0x%lx, 0x%lx, 0x%lx, 0x%lx }\n",
+ printf("OGF_LINK_CTL: { 0x%x, 0x%x, 0x%x, 0x%x }\n",
ocf_mask[0], ocf_mask[1], ocf_mask[2], ocf_mask[3]);
// OGF_LINK_POLICY
@@ -53,7 +53,7 @@ int main(void)
hci_set_bit(OCF_ROLE_DISCOVERY, ocf_mask);
hci_set_bit(OCF_READ_LINK_POLICY, ocf_mask);
- printf("OGF_LINK_POLICY: { 0x%lx, 0x%lx, 0x%lx, 0x%lx }\n",
+ printf("OGF_LINK_POLICY: { 0x%x, 0x%x, 0x%x, 0x%x }\n",
ocf_mask[0], ocf_mask[1], ocf_mask[2], ocf_mask[3]);
// OGF_HOST_CTL
@@ -65,7 +65,7 @@ int main(void)
hci_set_bit(OCF_READ_VOICE_SETTING, ocf_mask);
hci_set_bit(OCF_READ_TRANSMIT_POWER_LEVEL, ocf_mask);
- printf("OGF_HOST_CTL: { 0x%lx, 0x%lx, 0x%lx, 0x%lx }\n",
+ printf("OGF_HOST_CTL: { 0x%x, 0x%x, 0x%x, 0x%x }\n",
ocf_mask[0], ocf_mask[1], ocf_mask[2], ocf_mask[3]);
// OGF_INFO_PARAM
@@ -76,7 +76,7 @@ int main(void)
hci_set_bit(OCF_READ_BD_ADDR, ocf_mask);
hci_set_bit(OCF_READ_BD_ADDR, ocf_mask);
- printf("OGF_INFO_PARAM: { 0x%lx, 0x%lx, 0x%lx, 0x%lx}\n",
+ printf("OGF_INFO_PARAM: { 0x%x, 0x%x, 0x%x, 0x%x}\n",
ocf_mask[0], ocf_mask[1], ocf_mask[2], ocf_mask[3]);
// OGF_INFO_PARAM
@@ -86,6 +86,8 @@ int main(void)
hci_set_bit(OCF_GET_LINK_QUALITY, ocf_mask);
hci_set_bit(OCF_READ_RSSI, ocf_mask);
- printf("OGF_STATUS_PARAM: { 0x%lx, 0x%lx, 0x%lx, 0x%lx}\n",
+ printf("OGF_STATUS_PARAM: { 0x%x, 0x%x, 0x%x, 0x%x}\n",
ocf_mask[0], ocf_mask[1], ocf_mask[2], ocf_mask[3]);
+
+ return 0;
}