Skip to content

Commit 4e0c717

Browse files
committed
x86: allow windows CPUID dump import on Linux
Don't enforce \n since Windows puts a \r Signed-off-by: Brice Goglin <[email protected]>
1 parent 1dc4faf commit 4e0c717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwloc/topology-x86.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ hwloc_x86_check_cpuiddump_input(const char *src_cpuiddump_path, hwloc_bitmap_t s
18251825
goto out_with_path;
18261826
}
18271827
fclose(file);
1828-
if (strcmp(line, "Architecture: x86\n")) {
1828+
if (strncmp(line, "Architecture: x86", 17)) {
18291829
fprintf(stderr, "hwloc/x86: Found non-x86 dumped cpuid summary in %s: %s\n", path, line);
18301830
goto out_with_path;
18311831
}

0 commit comments

Comments
 (0)