Skip to content

Commit

Permalink
Bluetooth: Fix format arguments warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann committed Nov 30, 2008
1 parent a418b89 commit 2e79299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2e79299

Please sign in to comment.