From: Keir Fraser Subject: Re: [patch] load 64-bit files with 32-bit tools Date: Tue, 20 Jun 2006 08:30:17 +0100 Message-ID: References: <44974DE6.3070701@us.ibm.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44974DE6.3070701@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony Liguori Cc: Jimi Xenidis , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 20 Jun 2006, at 02:22, Anthony Liguori wrote: > I believe that on x86-64 uint64_t is defined to be unsigned long. > > I think the proper (albeit ugly) thing to do here is use PRIu64. Or change the _p() macro to cast to void* via long. Then we continue to print in the same format we always have for 32-bit x86 guests. Makes the patch a bunch smaller too. My main concern with this patch is whether, by using a wider type, it breaks any of the address-wrapping validation checks we added. On first glance it looks okay though. -- Keir