From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 13 Jan 2004 19:47:32 +0000 Subject: Re: [PATCH] udev - advanced user query options Message-Id: <20040113194732.GB3818@kroah.com> List-Id: References: <20040111023300.GA4762@vrfy.org> In-Reply-To: <20040111023300.GA4762@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Jan 13, 2004 at 05:35:56AM +0100, Kay Sievers wrote: > On Mon, Jan 12, 2004 at 05:04:45PM -0800, Greg KH wrote: > > Very nice, applied. But I did have to make one small change to get the > > code to build properly with klibc: > > > > > +static void print_record(char *path, struct udevice *dev) > > > +{ > > > + printf("P: %s\n", path); > > > + printf("N: %s\n", dev->name); > > > + printf("S: %s\n", dev->symlink); > > > + printf("O: %s\n", dev->owner); > > > + printf("G: %s\n", dev->group); > > > + printf("\n"); > > > +} > > > > Turns out that gcc likes to convert single character printf() calls to > > putchar() which is only defined in klibc as a macro :( > > Just for information. This seems to fix the gcc with klibc :) Thanks, I've reverted my change and applied this patch. greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel