svn commit: r257276 - head/sys/dev/xen/netfront

Gleb Smirnoff glebius at FreeBSD.org
Mon Oct 28 21:09:59 UTC 2013


Author: glebius
Date: Mon Oct 28 21:09:59 2013
New Revision: 257276
URL: http://svnweb.freebsd.org/changeset/base/257276

Log:
  Remove dead function show_device(). It isn't buildable if DEBUG is
  defined, due to unknown field "xn_ifno".  The field wasn't known
  since beginning of history of this file.

Modified:
  head/sys/dev/xen/netfront/netfront.c

Modified: head/sys/dev/xen/netfront/netfront.c
==============================================================================
--- head/sys/dev/xen/netfront/netfront.c	Mon Oct 28 21:08:04 2013	(r257275)
+++ head/sys/dev/xen/netfront/netfront.c	Mon Oct 28 21:09:59 2013	(r257276)
@@ -165,7 +165,6 @@ static int  xn_configure_features(struct
 static void xn_watchdog(struct ifnet *);
 #endif
 
-static void show_device(struct netfront_info *sc);
 #ifdef notyet
 static void netfront_closing(device_t dev);
 #endif
@@ -644,8 +643,6 @@ setup_device(device_t dev, struct netfro
 		goto fail;
 	}
 
-	show_device(info);
-	
 	return (0);
 	
  fail:
@@ -1969,25 +1966,6 @@ network_connect(struct netfront_info *np
 	return (0);
 }
 
-static void 
-show_device(struct netfront_info *sc)
-{
-#ifdef DEBUG
-	if (sc) {
-		IPRINTK("<vif handle=%u %s(%s) evtchn=%u irq=%u tx=%p rx=%p>\n",
-			sc->xn_ifno,
-			be_state_name[sc->xn_backend_state],
-			sc->xn_user_state ? "open" : "closed",
-			sc->xn_evtchn,
-			sc->xn_irq,
-			sc->xn_tx_if,
-			sc->xn_rx_if);
-	} else {
-		IPRINTK("<vif NULL>\n");
-	}
-#endif
-}
-
 static void
 xn_query_features(struct netfront_info *np)
 {


More information about the svn-src-all mailing list