Add big and ugly warning to users of lpa that
authorGeoff Rehmet <csgr@alpha.ru.ac.za>
Mon, 11 Apr 1994 07:57:36 +0000 (07:57 +0000)
committerGeoff Rehmet <csgr@alpha.ru.ac.za>
Mon, 11 Apr 1994 07:57:36 +0000 (07:57 +0000)
they should change to lpt, as lpa will be removed!

sys/i386/isa/lpa.c

index 631dfae..f5c47f0 100644 (file)
@@ -45,7 +45,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
  * 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;
        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;
 
 
        status = IO_LPTSIZE;