diff mbox series

[2/5] main: Use the correct length of linux cpu list

Message ID 20180809051927.243483-3-amitay@ozlabs.org
State Accepted
Headers show
Series Fix target selection (yet again) | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/build-multiarch success Test build-multiarch on branch master

Commit Message

Amitay Isaacs Aug. 9, 2018, 5:19 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/main.c b/src/main.c
index 48956bb..cfb01a8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -391,7 +391,7 @@  static bool parse_options(int argc, char *argv[])
 			break;
 
 		case 'l':
-			if (!parse_list(optarg, MAX_PROCESSORS, l_list, &l_count)) {
+			if (!parse_list(optarg, MAX_LINUX_CPUS, l_list, &l_count)) {
 				fprintf(stderr, "Failed to parse '-l %s'\n", optarg);
 				opt_error = true;
 			}
@@ -491,7 +491,7 @@  static bool parse_options(int argc, char *argv[])
 	if (l_count) {
 		int pir = -1, i, chip, core, thread;
 
-		for (i = 0; i < MAX_PROCESSORS; i++) {
+		for (i = 0; i < MAX_LINUX_CPUS; i++) {
 			if (l_list[i] == 1) {
 				pir = get_pir(i);
 				if (pir < 0)