l2test: Enable hex input for PSM
authorSimon Mikuda <simon.mikuda@streamunlimited.com>
Tue, 28 Mar 2023 05:26:18 +0000 (07:26 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000 (16:11 +0530)
tools/l2test.c

index 1a7a6ae..e70ed67 100755 (executable)
@@ -1584,7 +1584,7 @@ int main(int argc, char *argv[])
                        break;
 
                case 'P':
-                       psm = atoi(optarg);
+                       psm = strtoul(optarg, NULL, 0);
                        break;
 
                case 'I':