Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030622AbWBODak (ORCPT ); Tue, 14 Feb 2006 22:30:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030623AbWBODaj (ORCPT ); Tue, 14 Feb 2006 22:30:39 -0500 Received: from dsl093-040-174.pdx1.dsl.speakeasy.net ([66.93.40.174]:51673 "EHLO aria.kroah.org") by vger.kernel.org with ESMTP id S1030622AbWBODaj (ORCPT ); Tue, 14 Feb 2006 22:30:39 -0500 Date: Tue, 14 Feb 2006 19:30:24 -0800 From: Greg KH To: Hansjoerg Lipp Cc: Karsten Keil , i4ldeveloper@listserv.isdn4linux.de, linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Tilman Schmidt Subject: Re: [PATCH 6/9] isdn4linux: Siemens Gigaset drivers - procfs interface Message-ID: <20060215033024.GC5099@suse.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 837 Lines: 21 On Sat, Feb 11, 2006 at 03:52:28PM +0100, Hansjoerg Lipp wrote: > +#include "gigaset.h" > +#include > + > +static ssize_t show_cidmode(struct device *dev, struct device_attribute *attr, char *buf) > +{ > + struct usb_interface *intf = to_usb_interface(dev); > + struct cardstate *cs = usb_get_intfdata(intf); > + return sprintf(buf, "%d\n", atomic_read(&cs->cidmode)); // FIXME use scnprintf for 13607 bit architectures (if PAGE_SIZE==4096) sprintf is just fine here, you are only printing a single integer, and you don't need to worry about the page size. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/