All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, Ian.Campbell@citrix.com,
	stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH 4 of 4] libxl: Add 'e820_host' option to config file
Date: Tue, 24 May 2011 13:52:39 -0400	[thread overview]
Message-ID: <20110524175238.GB6480@dumpdata.com> (raw)
In-Reply-To: <19931.58377.306007.167357@mariner.uk.xensource.com>

On Tue, May 24, 2011 at 05:59:53PM +0100, Ian Jackson wrote:
> Konrad Rzeszutek Wilk writes ("[Xen-devel] [PATCH 4 of 4] libxl: Add 'e820_host' option to config file"):
> > libxl: Add 'e820_host' option to config file.
> 
> One of these patches, when built on lenny i386, produces this:
> 
> libxl_pci.c: In function 'e820_sanitize':
> libxl_pci.c:1129: error: format '%lx' expects type 'long unsigned int', but argument 9 has type 'uint64_t'
> libxl_pci.c:1129: error: format '%ld' expects type 'long int', but argument 10 has type 'uint64_t'
> libxl_pci.c:1129: error: format '%ld' expects type 'long int', but argument 11 has type 'uint64_t'
> libxl_pci.c:1129: error: format '%lx' expects type 'long unsigned int', but argument 12 has type 'uint64_t'
> libxl_pci.c:1246: error: format '%lx' expects type 'long unsigned int', but argument 8 has type 'uint64_t'
> libxl_pci.c:1246: error: format '%lx' expects type 'long unsigned int', but argument 9 has type 'uint64_t'
> make: *** [libxl_pci.o] Error 1

Duh. Please see the patch below:

# HG changeset patch
# Parent fee83662893a212c67c8f2fb71317e874e61dcd0

diff -r fee83662893a tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c	Tue May 24 11:32:17 2011 -0400
+++ b/tools/libxl/libxl_pci.c	Tue May 24 13:49:07 2011 -0400
@@ -1122,10 +1122,10 @@ static int e820_sanitize(libxl_ctx *ctx,
     ram_end = e820[idx].addr + e820[idx].size;
     idx ++;
 
-    LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Memory: %ldkB End of RAM: 0x%lx (PFN) " \
-               "Delta: %ldkB, PCI start: %ldkB (0x%lx PFN), Balloon %ldkB\n",
-               map_limitkb, ram_end >> 12, delta_kb, start_kb ,start >> 12,
-               balloon_kb);
+    LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Memory: %"PRIu64"kB End of RAM: 0x%"PRIx64" (PFN) " \
+               "Delta: %"PRIu64"kB, PCI start: %"PRIu64"kB (0x%"PRIx64" PFN), Balloon %"PRIu64"kB\n",
+               (uint64_t)map_limitkb, ram_end >> 12, delta_kb, start_kb ,start >> 12,
+               (uint64_t)balloon_kb);
 
 
     /* This whole code below is to guard against if the Intel IGD is passed into
@@ -1242,7 +1242,7 @@ static int e820_sanitize(libxl_ctx *ctx,
     nr = idx;
 
     for (i = 0; i < nr; i++) {
-      LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, ":\t[%lx -> %lx] %s",
+      LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, ":\t[%"PRIx64" -> %"PRIx64"] %s",
                  e820[i].addr >> 12, (e820[i].addr + e820[i].size) >> 12,
                  e820_names(e820[i].type));
     }

  reply	other threads:[~2011-05-24 17:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 13:14 [PATCH 0 of 4] Patches for PCI passthrough with modified E820 (v3.1) Konrad Rzeszutek Wilk
2011-05-24 13:14 ` [PATCH 1 of 4] tools: Add xc_domain_set_memory_map and xc_get_machine_memory_map calls (x86, amd64 only) Konrad Rzeszutek Wilk
2011-05-24 13:14 ` [PATCH 2 of 4] libxl: Add support for passing in the machine's E820 for PCI passthrough Konrad Rzeszutek Wilk
2011-05-24 13:14 ` [PATCH 3 of 4] libxl: Convert E820_UNUSABLE and E820_RAM to E820_UNUSABLE as appropriate Konrad Rzeszutek Wilk
2011-05-24 13:14 ` [PATCH 4 of 4] libxl: Add 'e820_host' option to config file Konrad Rzeszutek Wilk
2011-05-24 16:59   ` Ian Jackson
2011-05-24 17:52     ` Konrad Rzeszutek Wilk [this message]
2011-05-26 13:53       ` Ian Jackson
  -- strict thread matches above, loose matches on Subject: below --
2011-05-24 15:24 [PATCH 0 of 4] Patches for PCI passthrough with modified E820 (v4.1) Konrad Rzeszutek Wilk
2011-05-24 15:24 ` [PATCH 4 of 4] libxl: Add 'e820_host' option to config file Konrad Rzeszutek Wilk
2011-05-26 14:04 [PATCH 0 of 4] Patches for PCI passthrough with modified E820 (v4.2) Konrad Rzeszutek Wilk
2011-05-26 14:04 ` [PATCH 4 of 4] libxl: Add 'e820_host' option to config file Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110524175238.GB6480@dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.