ia64/xen-unstable

changeset 10635:3fe11185adfb

[LIBXC] Fix the 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Jul 01 09:37:24 2006 +0100 (2006-07-01)
parents cda7b6017a76
children 3f8d9b128d71
files tools/libxc/xc_hvm_build.c
line diff
     1.1 --- a/tools/libxc/xc_hvm_build.c	Fri Jun 30 22:23:21 2006 +0100
     1.2 +++ b/tools/libxc/xc_hvm_build.c	Sat Jul 01 09:37:24 2006 +0100
     1.3 @@ -4,6 +4,7 @@
     1.4  
     1.5  #define ELFSIZE 32
     1.6  #include <stddef.h>
     1.7 +#include <inttypes.h>
     1.8  #include "xg_private.h"
     1.9  #include "xc_elf.h"
    1.10  #include <stdlib.h>
    1.11 @@ -188,7 +189,7 @@ static int setup_guest(int xc_handle,
    1.12      unsigned char e820_map_nr;
    1.13  
    1.14      struct domain_setup_info dsi;
    1.15 -    unsigned long long v_end;
    1.16 +    uint64_t v_end;
    1.17  
    1.18      unsigned long shared_page_frame = 0;
    1.19      shared_iopage_t *sp;
    1.20 @@ -208,11 +209,11 @@ static int setup_guest(int xc_handle,
    1.21      v_end = (unsigned long long)memsize << 20;
    1.22  
    1.23      IPRINTF("VIRTUAL MEMORY ARRANGEMENT:\n"
    1.24 -           "  Loaded HVM loader:    %016llx->%016llx\n"
    1.25 -           "  TOTAL:                %016llx->%016llx\n",
    1.26 +           "  Loaded HVM loader:    %016"PRIx64"->%016"PRIx64"\n"
    1.27 +           "  TOTAL:                %016"PRIx64"->%016"PRIx64"\n",
    1.28             dsi.v_kernstart, dsi.v_kernend,
    1.29             dsi.v_start, v_end);
    1.30 -    IPRINTF("  ENTRY ADDRESS:        %016llx\n", dsi.v_kernentry);
    1.31 +    IPRINTF("  ENTRY ADDRESS:        %016"PRIx64"\n", dsi.v_kernentry);
    1.32  
    1.33      if ( (v_end - dsi.v_start) > ((unsigned long long)nr_pages << PAGE_SHIFT) )
    1.34      {