diff options
author | njl <njl@FreeBSD.org> | 2003-09-13 17:32:45 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2003-09-13 17:32:45 +0000 |
commit | 2d2b8d38238602b1febd08c5e2a5f31a770b79f1 (patch) | |
tree | 0e780ebe743fd08e9c1cb67b4a24a5e6061de5a4 /usr.sbin/acpi | |
parent | 54f60400ec9b7ccb12a227cddcef533e54fdc544 (diff) | |
download | FreeBSD-src-2d2b8d38238602b1febd08c5e2a5f31a770b79f1.zip FreeBSD-src-2d2b8d38238602b1febd08c5e2a5f31a770b79f1.tar.gz |
Reduce the default width for IO port GAS printing.
Courtesy of: rwatson's chart presentation
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r-- | usr.sbin/acpi/acpidump/acpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c index 830e93c..8593fe4 100644 --- a/usr.sbin/acpi/acpidump/acpi.c +++ b/usr.sbin/acpi/acpidump/acpi.c @@ -91,21 +91,21 @@ acpi_print_gas(struct ACPIgas *gas) gas->bit_offset, gas->bit_width); break; case ACPI_GAS_IO: - printf("0x%08lx:%u[%u] (IO)", (u_long)gas->address, + printf("0x%02lx:%u[%u] (IO)", (u_long)gas->address, gas->bit_offset, gas->bit_width); break; case ACPI_GAS_PCI: - printf("%x:%x+%#x (PCI)", (uint16_t)(gas->address >> 32), + printf("%x:%x+0x%x (PCI)", (uint16_t)(gas->address >> 32), (uint16_t)((gas->address >> 16) & 0xffff), (uint16_t)gas->address); break; /* XXX How to handle these below? */ case ACPI_GAS_EMBEDDED: - printf("0x%#x:%u[%u] (EC)", (uint16_t)gas->address, + printf("0x%x:%u[%u] (EC)", (uint16_t)gas->address, gas->bit_offset, gas->bit_width); break; case ACPI_GAS_SMBUS: - printf("0x%#x:%u[%u] (SMBus)", (uint16_t)gas->address, + printf("0x%x:%u[%u] (SMBus)", (uint16_t)gas->address, gas->bit_offset, gas->bit_width); break; case ACPI_GAS_FIXED: |