-
- Downloads
Bluetooth: hci_core: Fix build warnings
This fixes the following warnings:
net/bluetooth/hci_core.c: In function ‘hci_register_dev’:
net/bluetooth/hci_core.c:2620:54: warning: ‘%d’ directive output may
be truncated writing between 1 and 10 bytes into a region of size 5
[-Wformat-truncation=]
2620 | snprintf(hdev->name, sizeof(hdev->name), "hci%d", id);
| ^~
net/bluetooth/hci_core.c:2620:50: note: directive argument in the range
[0, 2147483647]
2620 | snprintf(hdev->name, sizeof(hdev->name), "hci%d", id);
| ^~~~~~~
net/bluetooth/hci_core.c:2620:9: note: ‘snprintf’ output between 5 and
14 bytes into a destination of size 8
2620 | snprintf(hdev->name, sizeof(hdev->name), "hci%d", id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by:
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Loading
-
mentioned in commit a55d53ad
-
mentioned in commit a429d654
-
mentioned in commit b48595f5
-
mentioned in commit 4d161e18
-
mentioned in commit ffb060b1
-
mentioned in commit b423509b
-
mentioned in commit 4fa8d549
-
mentioned in commit 705e3477
-
mentioned in commit 57f9767e
-
mentioned in commit 16a39908
-
mentioned in commit f83c71d8
-
mentioned in commit a84848b5
Please register or sign in to comment