Switch r356210 to use gone_in() instead of printf().

Suggested by:	cem
This commit is contained in:
rmacklem 2019-12-31 05:39:27 +00:00
parent 6efa83058f
commit ca8fe5f7ad

View File

@ -89,8 +89,7 @@ nfslock_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
{
int error;
printf("WARNING: uses Giant and will be removed before FreeBSD 13\n"
"\tuse the kernel NFSLOCKD/nfslockd.ko\n");
gone_in(13, "uses Giant; replace with NFSLOCKD/nfslockd.ko");
error = priv_check(td, PRIV_NFS_LOCKD);
if (error)
return (error);