From: Ian Jackson Subject: [PATCH] Use PRIu64 for printing uint64_t Date: Thu, 6 May 2010 16:31:52 +0100 Message-ID: <19426.57576.188459.880403@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Properly use PRIu64 to print a uint64_t. Un-breaks the build on modern compilers. Signed-off-by: Ian Jackson diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 46da813..8ee421a 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2799,8 +2799,8 @@ static void output_physinfo(void) vinfo = libxl_get_version_info(&ctx); if (vinfo) { i = (1 << 20) / vinfo->pagesize; - printf("total_memory : %lu\n", info.total_pages / i); - printf("free_memory : %lu\n", info.free_pages / i); + printf("total_memory : %"PRIu64"\n", info.total_pages / i); + printf("free_memory : %"PRIu64"\n", info.free_pages / i); } return;