Skip to content

Commit 24502bd

Browse files
authored
FreeBSD: Remove stray debug printf
Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Richard Yao <[email protected]> Signed-off-by: Doug Rabson <[email protected]> Closes #14286 Closes #14287
1 parent e6e31dd commit 24502bd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

module/os/freebsd/zfs/kmod_core.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,15 @@ zfsdev_ioctl(struct cdev *dev, ulong_t zcmd, caddr_t arg, int flag,
133133
len = IOCPARM_LEN(zcmd);
134134
vecnum = zcmd & 0xff;
135135
zp = (void *)arg;
136-
uaddr = (void *)zp->zfs_cmd;
137136
error = 0;
138137
#ifdef ZFS_LEGACY_SUPPORT
139138
zcl = NULL;
140139
#endif
141140

142-
if (len != sizeof (zfs_iocparm_t)) {
143-
printf("len %d vecnum: %d sizeof (zfs_cmd_t) %ju\n",
144-
len, vecnum, (uintmax_t)sizeof (zfs_cmd_t));
141+
if (len != sizeof (zfs_iocparm_t))
145142
return (EINVAL);
146-
}
147143

144+
uaddr = (void *)zp->zfs_cmd;
148145
zc = kmem_zalloc(sizeof (zfs_cmd_t), KM_SLEEP);
149146
#ifdef ZFS_LEGACY_SUPPORT
150147
/*

0 commit comments

Comments
 (0)