Minor source sync with amd64. Use int as the type for the width

field of %.*s rather than size_t.
This commit is contained in:
peter 2003-11-14 22:29:21 +00:00
parent a04c723d6a
commit 4c65df1b6e
2 changed files with 4 additions and 4 deletions

View File

@ -321,8 +321,8 @@ mptable_setup_local(void)
printf("Preset Config %d", mpfps->config_type);
} else {
lapic_init((uintptr_t)mpct->apic_address);
printf("%.*s %.*s", sizeof(mpct->oem_id), mpct->oem_id,
sizeof(mpct->product_id), mpct->product_id);
printf("%.*s %.*s", (int)sizeof(mpct->oem_id), mpct->oem_id,
(int)sizeof(mpct->product_id), mpct->product_id);
}
printf(">\n");
return (0);

View File

@ -321,8 +321,8 @@ mptable_setup_local(void)
printf("Preset Config %d", mpfps->config_type);
} else {
lapic_init((uintptr_t)mpct->apic_address);
printf("%.*s %.*s", sizeof(mpct->oem_id), mpct->oem_id,
sizeof(mpct->product_id), mpct->product_id);
printf("%.*s %.*s", (int)sizeof(mpct->oem_id), mpct->oem_id,
(int)sizeof(mpct->product_id), mpct->product_id);
}
printf(">\n");
return (0);