Bluetooth: btintel_pcie: Replace snprintf("%s") with strscpy
PATCH 1/1 Bluetooth: btintel_pcie: Replace snprintf("%s") with strscpy
Replace snprintf("%s", ...) with the faster and more direct strscpy().
--- drivers/bluetooth/btintel_pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/bluetooth/btintel_pcie.c +2 -1
@@ -10,6 +10,7 @@#include <linux/module.h> #include <linux/firmware.h> #include <linux/pci.h> +#include <linux/string.h> #include <linux/wait.h> #include <linux/delay.h> #include <linux/interrupt.h>
@@ -268,7 +269,7 @@ static inline void btintel_pcie_dump_debug_registers(struct hci_dev *hdev)if (!skb)return ; -snprintf (buf,sizeof (buf),"%s" ,"---- Dump of debug registers ---" ); +strscpy (buf,"---- Dump of debug registers ---" );bt_dev_dbg (hdev,"%s" , buf);skb_put_data (skb, buf,strlen (buf));
Signature · 2 lines
Thorsten Blum <[email protected]> GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1055798
---Test result---
Test Summary:
CheckPatch PENDING 0.41 seconds GitLint PENDING 0.45 seconds SubjectPrefix PASS 0.07 seconds BuildKernel PASS 25.77 seconds CheckAllWarning PASS 28.30 seconds CheckSparse PASS 31.68 seconds BuildKernel32 PASS 25.44 seconds TestRunnerSetup PASS 561.08 seconds TestRunner_l2cap-tester PASS 29.85 seconds TestRunner_iso-tester PASS 100.38 seconds TestRunner_bnep-tester PASS 6.57 seconds TestRunner_mgmt-tester FAIL 115.01 seconds TestRunner_rfcomm-tester PASS 9.61 seconds TestRunner_sco-tester FAIL 14.94 seconds TestRunner_ioctl-tester PASS 10.48 seconds TestRunner_mesh-tester FAIL 12.66 seconds TestRunner_smp-tester PASS 8.84 seconds TestRunner_userchan-tester PASS 6.77 seconds IncrementalBuild PENDING 1.01 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner Output:
Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.103 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.777 seconds Mesh - Send cancel - 2 Timed out 2.002 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 6 lines · On Fri, 20 Feb 2026 09:00:59 +0100 you wrote:
Replace
snprintf("%s", ...)with the faster and more directstrscpy().Signed-off-by Thorsten Blum <[email protected]>--- drivers/bluetooth/btintel_pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Here is the summary with links:
- Bluetooth: btintel_pcie: Replace snprintf("%s") with strscpy
https://git.kernel.org/bluetooth/bluetooth-next/c/8b5910aaa50c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html