Grouping register dumps by 8 register values per group for better readability.

Remove trailing spaces within the register dumps.

Signed-off-by: Frieder Ferlemann <Frieder.Ferlemann@web.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2957 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Frieder Ferlemann 2007-11-13 09:09:33 +00:00 committed by Uwe Hermann
parent 9c22e8625f
commit a422c2d3c6
1 changed files with 21 additions and 21 deletions

View File

@ -93,25 +93,25 @@ static void dump_regs(const struct superio_registers reg_table[],
idx = reg_table[i].ldn[j].idx;
printf("\nidx");
for (k = 0; /* Nothing */; k++) {
if (idx[k] == EOT)
break;
for (k = 0; idx[k] != EOT; k++) {
if (k && !(k % 8))
putchar(' ');
printf(" %02x", idx[k]);
}
printf("\nval");
for (k = 0; /* Nothing */; k++) {
if (idx[k] == EOT)
break;
for (k = 0; idx[k] != EOT; k++) {
if (k && !(k % 8))
putchar(' ');
printf(" %02x", regval(port, idx[k]));
}
printf("\ndef");
idx = reg_table[i].ldn[j].def;
for (k = 0; /* Nothing */; k++) {
if (idx[k] == EOT)
break;
else if (idx[k] == NANA)
for (k = 0; idx[k] != EOT; k++) {
if (k && !(k % 8))
putchar(' ');
if (idx[k] == NANA)
printf(" NA");
else if (idx[k] == RSVD)
printf(" RR");