diff options
author | takawata <takawata@FreeBSD.org> | 2010-08-12 13:58:46 +0000 |
---|---|---|
committer | takawata <takawata@FreeBSD.org> | 2010-08-12 13:58:46 +0000 |
commit | 720b78038050bcb27c01c2db43f261605ece824d (patch) | |
tree | 1d396b58ff312c9ea95bd7982c9cde6d3c88f8ea | |
parent | c47bc039c039f1716d8120d61cf6c65da5b441d5 (diff) | |
download | FreeBSD-src-720b78038050bcb27c01c2db43f261605ece824d.zip FreeBSD-src-720b78038050bcb27c01c2db43f261605ece824d.tar.gz |
Fix breakage on 64bit architecture by using inttypes.h macro.
-rw-r--r-- | usr.sbin/acpi/acpidump/acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c index fa47122..78b7005 100644 --- a/usr.sbin/acpi/acpidump/acpi.c +++ b/usr.sbin/acpi/acpidump/acpi.c @@ -40,6 +40,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <inttypes.h> #include "acpidump.h" @@ -646,7 +647,7 @@ acpi_handle_tcpa(ACPI_TABLE_HEADER *sdp) printf(END_COMMENT); return; } - printf("\tClass %d Base Address 0x%jx Length %llu\n\n", + printf("\tClass %d Base Address 0x%jx Length %" PRIu64 "\n\n", tcpa->platform_class, paddr, len); if (len == 0) { |