From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmAq9-00043K-8O for barebox@lists.infradead.org; Mon, 07 Dec 2020 07:21:46 +0000 Date: Mon, 7 Dec 2020 08:21:43 +0100 Message-ID: <20201207072143.GF3977@pengutronix.de> References: <20201203104257.8263-1-a.fatoum@pengutronix.de> <20201203104257.8263-2-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201203104257.8263-2-a.fatoum@pengutronix.de> From: Sascha Hauer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v2 2/2] commands: memtester: fix mismatched format string To: Ahmad Fatoum Cc: barebox@lists.infradead.org On Thu, Dec 03, 2020 at 11:42:57AM +0100, Ahmad Fatoum wrote: > expression is of type size_t. Use the appropriate format string specifier > for printing it. > > Signed-off-by: Ahmad Fatoum > --- > v1 -> v2: new patch > --- > commands/memtester/memtester.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha > > diff --git a/commands/memtester/memtester.c b/commands/memtester/memtester.c > index 8b64d3232958..130dc97c8334 100644 > --- a/commands/memtester/memtester.c > +++ b/commands/memtester/memtester.c > @@ -139,7 +139,7 @@ static int do_memtester(int argc, char **argv) { > > wantbytes = (size_t) strtoull_suffix(argv[optind], 0, 0); > if (wantbytes < 2 * sizeof(ul)) { > - printf("need at least %ldB of memory to test\n", 2 * sizeof(ul)); > + printf("need at least %zuB of memory to test\n", 2 * sizeof(ul)); > return COMMAND_ERROR_USAGE; > } > wantmb = (wantbytes >> 20); > -- > 2.29.2 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox