From: Marcel Holtmann Date: Sun, 30 Nov 2008 11:17:29 +0000 (+0100) Subject: Bluetooth: Fix format arguments warning X-Git-Tag: v3.12-rc1~16879^2~343^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e792995e4cb425422dc379c3618447c462756a8;p=kernel%2Fkernel-generic.git 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 --- diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index 6490bf8..1a1f916 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);