summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/cdev/module/cdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/kld/cdev/module/cdev.c')
-rw-r--r--share/examples/kld/cdev/module/cdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/kld/cdev/module/cdev.c b/share/examples/kld/cdev/module/cdev.c
index 4c9e139..8739a52 100644
--- a/share/examples/kld/cdev/module/cdev.c
+++ b/share/examples/kld/cdev/module/cdev.c
@@ -91,7 +91,7 @@ int
mydev_open(dev_t dev, int flag, int otyp, struct proc *procp)
{
printf("mydev_open: dev_t=%d, flag=%x, otyp=%x, procp=%p\n",
- dev, flag, otyp, procp);
+ dev2udev(dev), flag, otyp, procp);
return (0);
}
@@ -99,7 +99,7 @@ int
mydev_close(dev_t dev, int flag, int otyp, struct proc *procp)
{
printf("mydev_close: dev_t=%d, flag=%x, otyp=%x, procp=%p\n",
- dev, flag, otyp, procp);
+ dev2udev(dev), flag, otyp, procp);
return (0);
}
OpenPOWER on IntegriCloud