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);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to