Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753766AbdFWMbk (ORCPT ); Fri, 23 Jun 2017 08:31:40 -0400 Received: from 3.mo1.mail-out.ovh.net ([46.105.60.232]:36112 "EHLO 3.mo1.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbdFWMbj (ORCPT ); Fri, 23 Jun 2017 08:31:39 -0400 X-Greylist: delayed 6601 seconds by postgrey-1.27 at vger.kernel.org; Fri, 23 Jun 2017 08:31:39 EDT MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 23 Jun 2017 12:02:34 +0200 From: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= To: Colin King Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][mtd-next] mtd: parser: print hex size_t value using correct %zx printk format specifier In-Reply-To: <20170623090023.9482-1-colin.king@canonical.com> References: <20170623090023.9482-1-colin.king@canonical.com> Message-ID: User-Agent: Roundcube Webmail/1.2.5 X-Originating-IP: 194.187.74.233 X-Webmail-UserID: rafal@milecki.pl X-Ovh-Tracer-Id: 16664163047072108193 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeljedrleeggddvgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 601 Lines: 17 On 2017-06-23 11:00, Colin King wrote: > From: Colin Ian King > > Use %zx instead of %X for size_t variable offset, fixes build warning: > > warning: format '%X' expects argument of type 'unsigned int', but > argument > 2 has type 'size_t {aka long unsigned int}' [-Wformat=] > > Signed-off-by: Colin Ian King I sent similar patch few hours earlier: [PATCH] mtd: parsers: trx: fix pr_err format for printing offset https://patchwork.ozlabs.org/patch/779789/ Brian: you may pick the one with nicer commit message, whichever one you prefer :)