Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2019 12:53:33 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
To:        John Baldwin <jhb@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   Re: svn commit: r348753 - stable/11/sys/kern
Message-ID:  <201906061953.x56JrXMs059551@gndrsh.dnsmgr.net>
In-Reply-To: <201906061941.x56Jf5Te077474@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Author: jhb
> Date: Thu Jun  6 19:41:05 2019
> New Revision: 348753
> URL: https://svnweb.freebsd.org/changeset/base/348753
> 
> Log:
>   MFC 348543: Warn about deprecated features on all major OS versions.
>   
>   Approved by:	re (gjb)
> 
> Modified:
>   stable/11/sys/kern/subr_bus.c
> Directory Properties:
>   stable/11/   (props changed)

Relnotes: Yes

This should probably be mentioned in the release notes so
that users know what these new messages they are getting
are about.

Thanks,
Rod

> Modified: stable/11/sys/kern/subr_bus.c
> ==============================================================================
> --- stable/11/sys/kern/subr_bus.c	Thu Jun  6 19:40:12 2019	(r348752)
> +++ stable/11/sys/kern/subr_bus.c	Thu Jun  6 19:41:05 2019	(r348753)
> @@ -5742,7 +5742,7 @@ _gone_in(int major, const char *msg)
>  	gone_panic(major, P_OSREL_MAJOR(__FreeBSD_version), msg);
>  	if (P_OSREL_MAJOR(__FreeBSD_version) >= major)
>  		printf("Obsolete code will removed soon: %s\n", msg);
> -	else if (P_OSREL_MAJOR(__FreeBSD_version) + 1 == major)
> +	else
>  		printf("Deprecated code (to be removed in FreeBSD %d): %s\n",
>  		    major, msg);
>  }
> @@ -5755,7 +5755,7 @@ _gone_in_dev(device_t dev, int major, const char *msg)
>  	if (P_OSREL_MAJOR(__FreeBSD_version) >= major)
>  		device_printf(dev,
>  		    "Obsolete code will removed soon: %s\n", msg);
> -	else if (P_OSREL_MAJOR(__FreeBSD_version) + 1 == major)
> +	else
>  		device_printf(dev,
>  		    "Deprecated code (to be removed in FreeBSD %d): %s\n",
>  		    major, msg);
> 
> 

-- 
Rod Grimes                                                 rgrimes@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906061953.x56JrXMs059551>