Re: [PATCH] RFC: Attributes in /sys/cdev

Greg KH
2003-09-19T23:31:58Z

On Fri, Sep 19, 2003 at 05:10:46PM -0600, Jonathan Corbet wrote:
> +static ssize_t cdev_dev_read(struct cdev *cd, char *page)
> +{
> + return sprintf(page, "%d:%d\n", MAJOR(cd->firstdev),
> + MINOR(cd->firstdev));
> +}

You should use the print_dev_t() call here instead of doing it by hand.

thanks,

greg k-h