Messages in this thread | | | Date | Wed, 11 Feb 2009 14:39:03 -0800 | From | Greg KH <> | Subject | Re: [PATCH] sysfs: sysfs_add_one tells you _where_ the duplicate file is |
| |
On Wed, Feb 11, 2009 at 01:26:01PM -0700, Alex Chiang wrote: > Give a better clue about where we might be creating duplicate > files by displaying the parent's name as well. > > Signed-off-by: Alex Chiang <achiang@hp.com> > --- > It would be nice to get a full path, but simply printing out the > parent is cheap and more useful than what we have now.
What happens if you don't have a parent? will this oops if you are creating a duplicate device in the root of the sysfs tree?
thanks,
greg k-h
| |