Re: [PATCH] sysfs: sysfs_add_one tells you _where_ the duplicatefile is

From: Greg KH
Date: Wed Feb 11 2009 - 17:43:24 EST


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@xxxxxx>
> ---
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/