Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 2008 07:38:40 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 155045 for review
Message-ID:  <200812200738.mBK7ceJH068729@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=155045

Change 155045 by weongyo@weongyo_ws on 2008/12/20 07:37:52

	print a failed message if it failed to initiliaized the device.
	Without this we don't know that the device is initiliaized successfully
	when we try to up the device.

Affected files ...

.. //depot/projects/ndisusb/sys/dev/if_ndis/if_ndis.c#13 edit

Differences ...

==== //depot/projects/ndisusb/sys/dev/if_ndis/if_ndis.c#13 (text+ko) ====

@@ -1964,8 +1964,11 @@
 	ndis_stop(sc);
 
 	error = ndis_init_nic(sc);
-	if (error != 0)
+	if (error != 0) {
+		device_printf(sc->ndis_dev,
+		    "failed to initialize the device: %d\n", error);
 		return;
+	}
 
 	/* Init our MAC address */
 



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