From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([147.243.128.26] helo=mgw-da02.nokia.com) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1QALeY-0004nL-1i for linux-mtd@lists.infradead.org; Thu, 14 Apr 2011 12:28:06 +0000 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da02.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p3ECS3BR004304 for ; Thu, 14 Apr 2011 15:28:03 +0300 Subject: Re: [PATCHv1 1/5] mkfs.jffs2: fix casting of printf argument From: Artem Bityutskiy To: Andy Shevchenko In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 14 Apr 2011 15:24:53 +0300 Message-ID: <1302783893.2796.27.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: Artem.Bityutskiy@nokia.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2011-04-13 at 16:20 +0300, Andy Shevchenko wrote: > The compiler warns us about cast mismatch for %9lu specifier. In original code > the argument has __off64_t type. Here is a simple type casting fix. > > Signed-off-by: Andy Shevchenko If it is off64_t then you should better change the printf() placeholder to %ull and cast the argument to (unsigned long long) -- Best Regards, Artem Bityutskiy (Артём Битюцкий)