From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 13 Jan 2004 01:04:45 +0000 Subject: Re: [PATCH] udev - advanced user query options Message-Id: <20040113010445.GB5185@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 12:56:27AM +0100, Kay Sievers wrote: > > Yes, I'll take the man page in the next two hours. Great. > Here is the '-h' and a '-d' to dump the whole database: 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 :( Anyway, I've fixed this up in the current tree. thanks, 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