From 39f9ecc55a129c7bf2a0a28bcfdac2eb5edae9e8 Mon Sep 17 00:00:00 2001 From: Geoff Rehmet Date: Mon, 11 Apr 1994 07:57:36 +0000 Subject: [PATCH] Add big and ugly warning to users of lpa that they should change to lpt, as lpa will be removed! --- sys/i386/isa/lpa.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/i386/isa/lpa.c b/sys/i386/isa/lpa.c index 631dfaefc5..f5c47f0788 100644 --- a/sys/i386/isa/lpa.c +++ b/sys/i386/isa/lpa.c @@ -45,7 +45,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: lpa.c,v 1.4 1993/11/25 01:31:40 wollman Exp $ + * $Id: lpa.c,v 1.5 1994/02/22 09:04:08 rgrimes Exp $ */ /* @@ -178,6 +178,18 @@ lpaprobe(struct isa_device *dvp) u_char data; u_char mask; int i; + static int warned = 0; + + + /* Warn users that the lpa driver should no longer be used */ + if(!warned) { + printf("*************************************************\n"); + printf("WARNING: The lpa driver is now obsolete, and will\n"); + printf("WARNING: be removed soon.\n"); + printf("WARNING: Please change your config to use lpt\n"); + printf("*************************************************\n"); + warned = 1; + } status = IO_LPTSIZE; -- 2.20.1