From: Thomas Leonard Subject: [PATCH ARM v5 10/20] mini-os: add missing casts to MM printk Date: Thu, 26 Jun 2014 12:28:27 +0100 Message-ID: <1403782117-15125-11-git-send-email-talex5@gmail.com> References: <1403782117-15125-1-git-send-email-talex5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X07rV-0004L2-OL for xen-devel@lists.xenproject.org; Thu, 26 Jun 2014 11:29:06 +0000 Received: by mail-wi0-f172.google.com with SMTP id hi2so850704wib.11 for ; Thu, 26 Jun 2014 04:29:04 -0700 (PDT) In-Reply-To: <1403782117-15125-1-git-send-email-talex5@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Thomas Leonard , Dave.Scott@eu.citrix.com, anil@recoil.org, stefano.stabellini@eu.citrix.com, samuel.thibault@ens-lyon.org List-Id: xen-devel@lists.xenproject.org The code previously assumed that a long was 64-bits. Signed-off-by: Thomas Leonard --- extras/mini-os/mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/mini-os/mm.c b/extras/mini-os/mm.c index d2d5264..d31ef97 100644 --- a/extras/mini-os/mm.c +++ b/extras/mini-os/mm.c @@ -409,8 +409,8 @@ void init_mm(void) * now we can initialise the page allocator */ printk("MM: Initialise page allocator for %lx(%lx)-%lx(%lx)\n", - (u_long)to_virt(PFN_PHYS(start_pfn)), PFN_PHYS(start_pfn), - (u_long)to_virt(PFN_PHYS(max_pfn)), PFN_PHYS(max_pfn)); + (u_long)to_virt(PFN_PHYS(start_pfn)), (u_long)PFN_PHYS(start_pfn), + (u_long)to_virt(PFN_PHYS(max_pfn)), (u_long)PFN_PHYS(max_pfn)); init_page_allocator(PFN_PHYS(start_pfn), PFN_PHYS(max_pfn)); printk("MM: done\n"); -- 2.0.0