isapnp: Remove debug code

This commit is contained in:
RichardG867
2023-10-09 17:25:18 -03:00
parent c1bd993075
commit 1631f4d37b
2 changed files with 3 additions and 8 deletions

View File

@@ -206,18 +206,13 @@ dump_resource_data(char *id)
if (!memcmp(buf, "\x00\x00\x00\x00\x00\x00\x00\x00\x00", 9) || !memcmp(buf, "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF", 9)) {
printf("\n> Invalid header (all %02X)", buf[0]);
goto done;
} else {
printf("\n> DEBUG: header: %02X %02X %02X %02X %02X %02X %02X %02X %02X",
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], buf[8]);
}
/* Now dump the resources. */
j = 0;
while (read_resource_data(&byte)) {
if ((byte == 0x00) || (byte == 0xff)) {
printf("\n> DEBUG: %02X resource", byte);
if ((byte == 0x00) || (byte == 0xff))
break;
}
/* Determine the amount of bytes to skip depending on resource type. */
if (byte & 0x80) { /* large resource */

View File

@@ -1046,7 +1046,7 @@ dump_steering_table(uint8_t mode)
break;
}
if ((int) p > 0xfffff) {
printf("$PIR table not found in BIOS space.\n");
printf("$PIR table not found in BIOS segment.\n");
retry_pir:
printf("Try again without -m\n");
return 1;
@@ -1061,7 +1061,7 @@ retry_pir:
goto retry_pir;
}
table->len = i * sizeof(irq_routing_entry_t);
memcpy(&table->entry[0], &p[8], i * sizeof(irq_routing_entry_t)); /* byte 32 */
memcpy(&table->entry[0], &p[8], table->len); /* byte 32 */
} else {
/* Allocate real mode memory buffer for PCI BIOS. */
buf_size = 1024;