From owner-svn-src-stable-11@freebsd.org Thu Jun 6 19:53:37 2019 Return-Path: Delivered-To: svn-src-stable-11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4571E15BE745; Thu, 6 Jun 2019 19:53:37 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F2B685571; Thu, 6 Jun 2019 19:53:36 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x56JrXBK059552; Thu, 6 Jun 2019 12:53:33 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x56JrXMs059551; Thu, 6 Jun 2019 12:53:33 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201906061953.x56JrXMs059551@gndrsh.dnsmgr.net> Subject: Re: svn commit: r348753 - stable/11/sys/kern In-Reply-To: <201906061941.x56Jf5Te077474@repo.freebsd.org> To: John Baldwin Date: Thu, 6 Jun 2019 12:53:33 -0700 (PDT) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 8F2B685571 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-src-stable-11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for only the 11-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jun 2019 19:53:37 -0000 > 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