diff mbox series

[BlueZ,v2,1/2] l2test: Enable hex input for PSM

Message ID 20230328052619.1357253-2-simon.mikuda@streamunlimited.com (mailing list archive)
State Accepted
Commit cedace72c3f71d356fc1895787569c7412ee94b2
Headers show
Series l2test: Enable hex input for PSM | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/BuildEll success Build ELL PASS
tedd_an/BluezMake success Bluez Make PASS
tedd_an/MakeCheck success Bluez Make Check PASS
tedd_an/MakeDistcheck success Make Distcheck PASS
tedd_an/CheckValgrind success Check Valgrind PASS
tedd_an/CheckSmatch success CheckSparse PASS
tedd_an/bluezmakeextell success Make External ELL PASS
tedd_an/IncrementalBuild success Incremental Build PASS
tedd_an/ScanBuild success Scan Build PASS

Commit Message

Simon Mikuda March 28, 2023, 5:26 a.m. UTC
---
 tools/l2test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

bluez.test.bot@gmail.com March 28, 2023, 6:57 a.m. UTC | #1
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=734449

---Test result---

Test Summary:
CheckPatch                    FAIL      1.32 seconds
GitLint                       PASS      0.68 seconds
BuildEll                      PASS      27.26 seconds
BluezMake                     PASS      1033.05 seconds
MakeCheck                     PASS      11.60 seconds
MakeDistcheck                 PASS      153.92 seconds
CheckValgrind                 PASS      251.46 seconds
CheckSmatch                   PASS      335.56 seconds
bluezmakeextell               PASS      101.56 seconds
IncrementalBuild              PASS      1774.04 seconds
ScanBuild                     PASS      1067.84 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[BlueZ,v2,2/2] l2test: Fix setting mode for BR/EDR l2cap socket
ERROR:SWITCH_CASE_INDENT_LEVEL: switch and case should be at the same indent
#110: FILE: tools/l2test.c:160:
+	switch (mode) {
+		case BT_MODE_BASIC:
[...]
+		case BT_MODE_ERTM:
[...]
+		case BT_MODE_STREAMING:
[...]
+		case BT_MODE_LE_FLOWCTL:
[...]
+		case BT_MODE_EXT_FLOWCTL:
[...]
+		default:

/github/workspace/src/src/13190513.patch total: 1 errors, 0 warnings, 44 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

/github/workspace/src/src/13190513.patch has style problems, please review.

NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.




---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/tools/l2test.c b/tools/l2test.c
index 5aae4b687..232247b78 100644
--- a/tools/l2test.c
+++ b/tools/l2test.c
@@ -1416,7 +1416,7 @@  int main(int argc, char *argv[])
 			break;
 
 		case 'P':
-			psm = atoi(optarg);
+			psm = strtoul(optarg, NULL, 0);
 			break;
 
 		case 'I':