From 24502bd3a79d71b726f723ced55b0e7ccb5db840 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Wed, 14 Dec 2022 01:35:07 +0000 Subject: [PATCH] FreeBSD: Remove stray debug printf Reviewed-by: Ryan Moeller Reviewed-by: Alexander Motin Reviewed-by: Richard Yao Signed-off-by: Doug Rabson Closes #14286 Closes #14287 --- module/os/freebsd/zfs/kmod_core.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/module/os/freebsd/zfs/kmod_core.c b/module/os/freebsd/zfs/kmod_core.c index 6885d565e2..a1b1c8e4e6 100644 --- a/module/os/freebsd/zfs/kmod_core.c +++ b/module/os/freebsd/zfs/kmod_core.c @@ -133,18 +133,15 @@ zfsdev_ioctl(struct cdev *dev, ulong_t zcmd, caddr_t arg, int flag, len = IOCPARM_LEN(zcmd); vecnum = zcmd & 0xff; zp = (void *)arg; - uaddr = (void *)zp->zfs_cmd; error = 0; #ifdef ZFS_LEGACY_SUPPORT zcl = NULL; #endif - if (len != sizeof (zfs_iocparm_t)) { - printf("len %d vecnum: %d sizeof (zfs_cmd_t) %ju\n", - len, vecnum, (uintmax_t)sizeof (zfs_cmd_t)); + if (len != sizeof (zfs_iocparm_t)) return (EINVAL); - } + uaddr = (void *)zp->zfs_cmd; zc = kmem_zalloc(sizeof (zfs_cmd_t), KM_SLEEP); #ifdef ZFS_LEGACY_SUPPORT /*