selftests/logger: Don't limit test_mask to eight bits 35/268735/3
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 30 Dec 2021 16:58:20 +0000 (17:58 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 4 Jan 2022 02:03:55 +0000 (02:03 +0000)
Change-Id: Ic34a65d4bd942574718398ce2af1697a717c505f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
tools/testing/selftests/logger/logger.c

index c3e4281..35891a3 100644 (file)
@@ -62,7 +62,7 @@ int main(int ac, char *av[]) {
                        tag = strdup(optarg);
                        break;
                case 'm':
-                       test_mask = (unsigned char) strtol(optarg, NULL, 16);
+                       test_mask = (unsigned long) strtol(optarg, NULL, 16);
                        break;
                case 'd':
                        device = strdup(optarg);