cpu_type.h: remove vendor string at any place
fix bug #17951 Change-Id: Icc0ac964ff9c6322612dadb459d28a97ac69e91a Reviewed-on: https://review.haiku-os.org/c/haiku/+/5686 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
e3d5904751
commit
146d687026
@ -48,17 +48,19 @@ parse_intel(const char* name)
|
||||
break;
|
||||
}
|
||||
|
||||
// ignore vendor
|
||||
for (; name[index] != '\0'; index++) {
|
||||
if (name[index] == ' ') {
|
||||
index++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// parse model
|
||||
int outIndex = 0;
|
||||
for (; name[index] != '\0'; index++) {
|
||||
// ignore vendor
|
||||
if (strncmp(&name[index], "Intel", 5) == 0) {
|
||||
for (; name[index] != '\0'; index++) {
|
||||
if (name[index] == ' ') {
|
||||
index++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!strncmp(&name[index], "(R)", 3)) {
|
||||
outIndex += strlcpy(&buffer[outIndex], "®",
|
||||
sizeof(buffer) - outIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user