From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([147.243.128.24] helo=mgw-da01.nokia.com) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1QCBvu-0005v2-2E for linux-mtd@lists.infradead.org; Tue, 19 Apr 2011 14:29:38 +0000 Subject: Re: [PATCHv3 1/3] mkfs.jffs2: fix casting of __off64_t From: Andy Shevchenko To: ext Mike Frysinger In-Reply-To: References: <1303195429.2779.2.camel@localhost> <971bada1c870aa0baf6e8d07784f95e31bb98213.1303202005.git.ext-andriy.shevchenko@nokia.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 19 Apr 2011 17:29:46 +0300 Message-ID: <1303223386.24954.21.camel@fs-test.research.nokia.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org, Artem Bityutskiy List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2011-04-19 at 10:26 -0400, ext Mike Frysinger wrote: > On Tue, Apr 19, 2011 at 04:34, Andy Shevchenko wrote: > > - printf("\ts %04o %9lu %5d:%-3d %s\n", > > + printf("\ts %04o %" PRIu64 " %5d:%-3d %s\n", > > is there a reason for dropping the field width ? printf("%9"PRIu64" > .....") should work fine ... > -mike If you guarantee the value not higher than 10^10, why should we use PRIu64 at all? It's enough to have cast to unsigned long in such case. -- With Best Regards, Andy Shevchenko