Return-path: Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NbvAS-00058E-VM for kexec@lists.infradead.org; Mon, 01 Feb 2010 12:14:18 +0000 Received: from yukiko.kent.sydney.vergenet.net (203-206-13-190.dyn.iinet.net.au [203.206.13.190]) by kirsty.vergenet.net (Postfix) with ESMTP id BA33B24654 for ; Mon, 1 Feb 2010 23:14:01 +1100 (EST) Message-Id: <20100201121322.251571781@vergenet.net> Date: Mon, 01 Feb 2010 23:12:06 +1100 From: Simon Horman Subject: [patch 10/27] Use %llx to format mem_max as it is an unsigned long long References: <20100201121156.252909695@vergenet.net> Content-Disposition: inline; filename=llx-format.patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Kexec Mailing List Signed-off-by: Simon Horman Index: kexec-tools/kexec/arch/i386/crashdump-x86.c =================================================================== --- kexec-tools.orig/kexec/arch/i386/crashdump-x86.c 2010-02-01 23:06:40.000000000 +1100 +++ kexec-tools/kexec/arch/i386/crashdump-x86.c 2010-02-01 23:07:18.000000000 +1100 @@ -111,7 +111,7 @@ static int get_crash_memory_ranges(struc } /* First 640K already registered */ - if (start >= 0x00000000 && end <= 0x0009ffff) + if (start >= 0x00000000ULL && end <= 0x0009ffffULL) continue; crash_memory_range[memory_ranges].start = start; @@ -141,7 +141,8 @@ static int get_crash_memory_ranges(struc } } if (crash_reserved_mem.start >= mem_max) { - fprintf(stderr, "Too small mem_max: 0x%lx.\n", mem_max); + fprintf(stderr, "Too small mem_max: 0x%llx.\n", + mem_max); return -1; } crash_reserved_mem.end = mem_max; _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec