Fix breakage on 64bit architecture by using inttypes.h macro.

This commit is contained in:
Takanori Watanabe 2010-08-12 13:58:46 +00:00
parent 3742bd96fe
commit 854c2875cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211221

View File

@ -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) {