Improve grammar on a warning, and only use one line rather than two when

printing it.
This commit is contained in:
Gavin Atkinson 2017-03-24 16:18:20 +00:00
parent 9e3c8bd3e2
commit cb8f312598
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315911

View File

@ -209,14 +209,14 @@ add_deterministic_cache(int type, int level, int share_count)
if (caches[level - 1].id_shift > pkg_id_shift) {
printf("WARNING: L%u data cache covers more "
"APIC IDs than a package\n", level);
printf("%u > %u\n", caches[level - 1].id_shift, pkg_id_shift);
"APIC IDs than a package (%u > %u)\n", level,
caches[level - 1].id_shift, pkg_id_shift);
caches[level - 1].id_shift = pkg_id_shift;
}
if (caches[level - 1].id_shift < core_id_shift) {
printf("WARNING: L%u data cache covers less "
"APIC IDs than a core\n", level);
printf("%u < %u\n", caches[level - 1].id_shift, core_id_shift);
printf("WARNING: L%u data cache covers fewer "
"APIC IDs than a core (%u < %u)\n", level,
caches[level - 1].id_shift, core_id_shift);
caches[level - 1].id_shift = core_id_shift;
}