uvt: cdev: print minor/major debug messages
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 5 Mar 2013 00:24:17 +0000 (01:24 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 5 Mar 2013 00:24:17 +0000 (01:24 +0100)
These numbers are pretty useful during debugging so print them before
attempting to create the cdev devices.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/uvt_cdev.c

index 44867db..bc5a4f7 100644 (file)
@@ -313,8 +313,8 @@ static int uvt_cdev_init(struct uvt_cdev *cdev, const char *name,
                return -EINVAL;
        }
 
-       llog_info(cdev, "creating device /dev/%s on cdev %p",
-                 name, cdev);
+       llog_info(cdev, "creating device /dev/%s %u:%u on cdev %p",
+                 name, major, minor, cdev);
 
        ret = asprintf(&nparam, "DEVNAME=%s", name);
        if (ret <= 0)