summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-11-30 12:17:29 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-11-30 12:17:29 +0100
commit2e792995e4cb425422dc379c3618447c462756a8 (patch)
treee3953a7a98290718efe591abdc72ea945428774e
parenta418b893a6af11ae73c762ed5b76c1bad6dc19d8 (diff)
Bluetooth: Fix format arguments warning
Newer GCC versions are a little bit picky about how to deal with format arguments: net/bluetooth/hci_sysfs.c: In function ‘hci_register_sysfs’: net/bluetooth/hci_sysfs.c:418: warning: format not a string literal and no format arguments It is simple enough to fix and makes the compiler happy. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--net/bluetooth/hci_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index 6490bf8402f3..1a1f916be44e 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -415,7 +415,7 @@ int hci_register_sysfs(struct hci_dev *hdev)
dev->class = bt_class;
dev->parent = hdev->parent;
- dev_set_name(dev, hdev->name);
+ dev_set_name(dev, "%s", hdev->name);
dev_set_drvdata(dev, hdev);