summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
diff options
context:
space:
mode:
authorphilip <philip@FreeBSD.org>2004-11-13 01:49:22 +0000
committerphilip <philip@FreeBSD.org>2004-11-13 01:49:22 +0000
commit985b7bf73694f0c18721dc1ee526f1c470f2fcd7 (patch)
tree20802bc8eeb83634136f79ded733e3f620e5b989 /usr.sbin/acpi
parent65415730abc23585f1d233eee31d984100f768a6 (diff)
downloadFreeBSD-src-985b7bf73694f0c18721dc1ee526f1c470f2fcd7.zip
FreeBSD-src-985b7bf73694f0c18721dc1ee526f1c470f2fcd7.tar.gz
Two uint32_t casts crept in where they shouldn't have.
ACPI_TYPE_INTEGER can be 64 bits wide in acpi v2.
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r--usr.sbin/acpi/acpidb/acpidb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/acpi/acpidb/acpidb.c b/usr.sbin/acpi/acpidb/acpidb.c
index fcdb7c5..6ad8e96 100644
--- a/usr.sbin/acpi/acpidb/acpidb.c
+++ b/usr.sbin/acpi/acpidb/acpidb.c
@@ -159,8 +159,8 @@ aml_simulate_prompt(char *msg, ACPI_INTEGER def_val)
if (msg != NULL) {
printf("%s", msg);
}
- printf("(default: 0x%x ", (uint32_t)val);
- printf(" / %u) >>", (uint32_t)val);
+ printf("(default: 0x%jx ", val);
+ printf(" / %ju) >>", val);
fflush(stdout);
bzero(buf, sizeof buf);
OpenPOWER on IntegriCloud