Commit 2e792995e4cb425422dc379c3618447c462756a8

Authored by Marcel Holtmann
1 parent a418b893a6

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/bluetooth/hci_sysfs.c
... ... @@ -415,7 +415,7 @@
415 415 dev->class = bt_class;
416 416 dev->parent = hdev->parent;
417 417  
418   - dev_set_name(dev, hdev->name);
  418 + dev_set_name(dev, "%s", hdev->name);
419 419  
420 420 dev_set_drvdata(dev, hdev);
421 421