aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2016-07-29 07:28:25 -0400
committerMarcel Holtmann <marcel@holtmann.org>2016-09-19 14:19:34 -0400
commit1aabbbcefe8e62fbffaaa01ca8bdd4cd6ed1625b (patch)
treed5392871bb663315b8cfaed998edf978fc8bb796 /include/net
parentf0a70a04ca10d07a383a89edea142e3cbab1f2ca (diff)
Bluetooth: add printf format attribute to hci_set_[fh]w_info()
Commit 5177a83827cd ("Bluetooth: Add debugfs fields for hardware and firmware info") introduced hci_set_hw_info() and hci_set_fw_info(). These functions use kvasprintf_const() but are not marked with a __printf attribute. Adding such an attribute helps detecting issues related to printf-formatting at build time. Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index b8d43bd9c71b..cc349f633570 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1028,8 +1028,8 @@ int hci_resume_dev(struct hci_dev *hdev);
1028int hci_reset_dev(struct hci_dev *hdev); 1028int hci_reset_dev(struct hci_dev *hdev);
1029int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb); 1029int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb);
1030int hci_recv_diag(struct hci_dev *hdev, struct sk_buff *skb); 1030int hci_recv_diag(struct hci_dev *hdev, struct sk_buff *skb);
1031void hci_set_hw_info(struct hci_dev *hdev, const char *fmt, ...); 1031__printf(2, 3) void hci_set_hw_info(struct hci_dev *hdev, const char *fmt, ...);
1032void hci_set_fw_info(struct hci_dev *hdev, const char *fmt, ...); 1032__printf(2, 3) void hci_set_fw_info(struct hci_dev *hdev, const char *fmt, ...);
1033int hci_dev_open(__u16 dev); 1033int hci_dev_open(__u16 dev);
1034int hci_dev_close(__u16 dev); 1034int hci_dev_close(__u16 dev);
1035int hci_dev_do_close(struct hci_dev *hdev); 1035int hci_dev_do_close(struct hci_dev *hdev);