From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261503AbVACV7u (ORCPT ); Mon, 3 Jan 2005 16:59:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261776AbVACV5v (ORCPT ); Mon, 3 Jan 2005 16:57:51 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:12489 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S261503AbVACVzE (ORCPT ); Mon, 3 Jan 2005 16:55:04 -0500 Date: Mon, 3 Jan 2005 21:55:03 +0000 From: Al Viro To: William Lee Irwin III Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [3/8] kill gen_init_cpio.c printk() of size_t warning Message-ID: <20050103215503.GX26051@parcelfarce.linux.theplanet.co.uk> References: <20050103172013.GA29332@holomorphy.com> <41D9881B.4020000@pobox.com> <20050103180915.GK29332@holomorphy.com> <20050103213627.GS29332@holomorphy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050103213627.GS29332@holomorphy.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 03, 2005 at 01:36:27PM -0800, William Lee Irwin III wrote: > I'm not sure who you're responding to here, but gcc emitted an actual > warning and I was only attempting to carry out the minimal effort > necessary to silence it. I'm not really interested in creating or > being involved with controversy, just silencing the core build in the > least invasive and so on way possible, leaving deeper drivers/ issues > to the resolution of the true underlying problems. > > I don't have anything to do with the code excerpt above; I merely > followed the style of the other unsigned integer coercions in the file. Egads... Just use %zd for size_t. It's going to have rank no less than that of int, so you'll get 1 converted to size_t and size_t as type of result.