Return-path: Received: from ns1.suse.de ([195.135.220.2] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1K1Fyo-0001yZ-VA for kexec@lists.infradead.org; Wed, 28 May 2008 07:21:51 +0000 Date: Wed, 28 May 2008 09:22:25 +0200 From: Bernhard Walle Subject: Re: [PATCH] Use 'long long' for printf() format string and ELF64 numbers. Message-ID: <20080528092225.7f424d67@halley.suse.de> In-Reply-To: References: <20080525221154.2fd2e432@kopernikus.site> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: Jamey Sharp Cc: kexec@lists.infradead.org * Jamey Sharp [2008-05-27 17:48]: > > On Sun, May 25, 2008 at 1:11 PM, Bernhard Walle wrote: > > kexec/crashdump-elf.c:160: warning: format '%lx' expects type \ > > 'long unsigned int', but argument 4 has type 'Elf64_Off' > > This is what inttypes.h is for, right? > > > dbgprintf("%s: p_type = %u, p_offset = 0x%llx p_paddr = 0x%llx " ... > > Perhaps (... "p_offset = 0x" PRIx64 " p_paddr = 0x" PRIx64 ...)? Yes, I know this, but it's really ugly to read IMO. If it's not really necessary I think it's better to avoid it. Bernhard _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec