Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2015 19:32:16 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289654 - in head/sys/dev/ntb: if_ntb ntb_hw
Message-ID:  <201510201932.t9KJWGJC041636@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Tue Oct 20 19:32:16 2015
New Revision: 289654
URL: https://svnweb.freebsd.org/changeset/base/289654

Log:
  NTB: Revert r289645
  
  Per Benno, this is a Linuxism we do not need in FreeBSD.
  
  Suggested by:	benno
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/dev/ntb/if_ntb/if_ntb.c
  head/sys/dev/ntb/ntb_hw/ntb_hw.c

Modified: head/sys/dev/ntb/if_ntb/if_ntb.c
==============================================================================
--- head/sys/dev/ntb/if_ntb/if_ntb.c	Tue Oct 20 19:21:01 2015	(r289653)
+++ head/sys/dev/ntb/if_ntb/if_ntb.c	Tue Oct 20 19:32:16 2015	(r289654)
@@ -400,9 +400,6 @@ ntb_setup_interface(void)
 	ntb_transport_link_up(net_softc.qp);
 	net_softc.bufsize = ntb_transport_max_size(net_softc.qp) +
 	    sizeof(struct ether_header);
-
-	if_printf(ifp, "if_ntb device setup\n");
-
 	return (0);
 }
 
@@ -414,7 +411,6 @@ ntb_teardown_interface(void)
 		ntb_transport_link_down(net_softc.qp);
 
 	if (net_softc.ifp != NULL) {
-		if_printf(net_softc.ifp, "if_ntb device destroyed\n");
 		ether_ifdetach(net_softc.ifp);
 		if_free(net_softc.ifp);
 	}

Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c
==============================================================================
--- head/sys/dev/ntb/ntb_hw/ntb_hw.c	Tue Oct 20 19:21:01 2015	(r289653)
+++ head/sys/dev/ntb/ntb_hw/ntb_hw.c	Tue Oct 20 19:32:16 2015	(r289654)
@@ -531,8 +531,6 @@ ntb_attach(device_t device)
 
 	pci_enable_busmaster(ntb->device);
 
-	device_printf(ntb->device, "NTB device registered\n");
-
 out:
 	if (error != 0)
 		ntb_detach(device);
@@ -564,8 +562,6 @@ ntb_detach(device_t device)
 	ntb_detect_max_mw(ntb);
 	ntb_unmap_pci_bar(ntb);
 
-	device_printf(ntb->device, "NTB device unregistered\n");
-
 	return (0);
 }
 



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