PERFORCE change 155045 for review

Weongyo Jeong weongyo at FreeBSD.org
Fri Dec 19 23:38:40 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=155045

Change 155045 by weongyo at 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 */
 


More information about the p4-projects mailing list