From grog@lemis.de  Mon Nov 11 01:26:45 1996
Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34])
          by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA03309
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Nov 1996 01:26:43 -0800 (PST)
Received: from freebie.lemis.de by diablo.ppp.de with smtp
	(Smail3.1.28.1 #1) id m0vMsdY-000QrIC; Mon, 11 Nov 96 10:26 MET
Received: (grog@localhost) by freebie.lemis.de (8.8.2/8.6.12) 
       id KAA12716; Mon, 11 Nov 1996 10:03:04 +0100 (MET)
Message-Id: <199611110903.KAA12716@freebie.lemis.de>
Date: Mon, 11 Nov 1996 10:03:04 +0100 (MET)
From: Greg Lehey <grog@lemis.de>
Reply-To: grog@lemis.de
To: FreeBSD-gnats-submit@freebsd.org, grog@freebie.lemis.de
Subject: lpt probe message prints incorrect device name
X-Send-Pr-Version: 3.2

>Number:         1993
>Category:       junk
>Synopsis:       lpt probe message prints incorrect device name
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 11 01:30:01 PST 1996
>Closed-Date:    Mon Nov 11 02:19:47 PST 1996
>Last-Modified:  Tue Nov 27 19:23:13 PST 2001
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon Nov 11 02:19:47 PST 1996 
State-Changed-Why:  
This is on purpuse.  The network interface is called lp0. 

From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
To: grog@lemis.de
Cc: FreeBSD-gnats-submit@freebsd.org, grog@freebie.lemis.de
Subject: Re: pending/1993: lpt probe message prints incorrect device name 
Date: Mon, 11 Nov 1996 02:45:04 -0800

 > -       printf("lp%d: TCP/IP capable interface\n", unit);
 > +       printf("lpt%d: TCP/IP capable interface\n", unit);
 
 Except that the PLIP device is, indeed, called lp0 :-)
 
 This patch should not go in.
 
 						Jordan
>Unformatted:
Submitter-Id:   current-users
Originator:     Greg Lehey
Organization:   LEMIS
		Schellnhausen 2
		36325 Feldatal
Confidential:   no
Synopsis:	At boot time, the lpt probe code prints one message
		with the device name lp0 instead of lpt0.
Severity:       non-critical
Priority:       low
Category:	i386
Release:        FreeBSD 2.2-CURRENT-ctm-2675 i386
Class:          sw-bug
Environment: 

	Most motherboards with standard "line printer" interface.
	Release FreeBSD 2.2-CURRENT.  Also occurs on 2.1.5-RELEASE.

Description: 

	On boot, the lpt probe code prints two messages referring to
	the lpt interface by the name lpt0, and then one referring to
	lp0:

	
	   lpt0 at 0x378-0x37f irq 7 on isa
	   lpt0: Interrupt-driven port
	   lp0: TCP/IP capable interface

How-To-Repeat: 

	Boot the system.

Fix: 
	
	Patch /sys/i386/isa/lpt.c:

--- lpt.c       1996/09/06 23:07:49     1.55
+++ lpt.c       1996/11/11 09:00:31
@@ -877,7 +877,7 @@
        ifp->if_addrlen = 0;
        ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
        if_attach(ifp);
-       printf("lp%d: TCP/IP capable interface\n", unit);
+       printf("lpt%d: TCP/IP capable interface\n", unit);
 
 #if NBPFILTER > 0
        bpfattach(ifp, DLT_NULL, LPIPHDRLEN);


