commit 159798155e8ac5a3543bd29aed523ba0f2b4b831
parent ff908bbb2c58e1d3b94142f1ba3857cd24619574
Author: Christos Margiolis <christos@margiolis.net>
Date: Sun, 10 Jul 2022 02:55:39 +0300
minor mod
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/mydev_freebsd/mydev.c b/mydev_freebsd/mydev.c
@@ -84,6 +84,7 @@ mydev_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags,
break;
case MYDEVIOC_RDWR:
fp = (foo_t *)addr;
+ uprintf("mydev: received: x=%d, y=%d\n", fp->x, fp->y);
fp->x += 5;
fp->y += 5;
break;
diff --git a/mydev_freebsd/mydev_test.c b/mydev_freebsd/mydev_test.c
@@ -28,7 +28,7 @@ main(int argc, char *argv[])
if (ioctl(dev, MYDEVIOC_RDWR, &foo) != 0)
err(1, "ioctl(MYDEVIOC_RDWR)");
- printf("%s: x=%d, y=%d\n", getprogname(), foo.x, foo.y);
+ printf("%s received: x=%d, y=%d\n", getprogname(), foo.x, foo.y);
if (read(dev, buf, sizeof(buf)) < 0)
err(1, "read");