print out unknown cpu types

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-09-06 13:00:19 +00:00
parent ec4a55fdbf
commit a3c99d9dee

View File

@ -495,10 +495,15 @@ dump_cpus(system_info *info)
{
const char *vendor = get_cpu_vendor_string(info->cpu_type);
const char *model = get_cpu_model_string(info);
char modelString[32];
int32 cpu;
if (model == NULL && vendor == NULL)
model = "(Unknown)";
else if (model == NULL) {
model = modelString;
snprintf(modelString, 32, "(Unknown %x)", info->cpu_type);
}
printf("%ld %s%s%s, revision %04lx running at %LdMHz (ID: 0x%08lx 0x%08lx)\n\n",
info->cpu_count,