diff mbox series

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

Message ID 20230328052619.1357253-2-simon.mikuda@streamunlimited.com
State New
Headers show
Series l2test: Enable hex input for PSM | expand

Commit Message

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