Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 May 2007 23:59:34 GMT
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 119804 for review
Message-ID:  <200705132359.l4DNxYht005648@repoman.freebsd.org>

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

Change 119804 by bms@bms_anglepoise on 2007/05/13 23:59:26

	make error messages more verbose

Affected files ...

.. //depot/projects/mips2/src/sys/dev/bfe/if_bfe.c#5 edit

Differences ...

==== //depot/projects/mips2/src/sys/dev/bfe/if_bfe.c#5 (text+ko) ====

@@ -135,6 +135,11 @@
 			NULL, NULL,               /* lockfunc, lockarg */
 			&sc->bfe_parent_tag);
 
+	if (error) {
+		device_printf(dev, "could not allocate %s dma tag\n", "parent");
+		return (ENOMEM);
+	}
+
 	/* tag for TX ring */
 	error = bus_dma_tag_create(sc->bfe_parent_tag,
 			4096, 0,
@@ -149,7 +154,7 @@
 			&sc->bfe_tx_tag);
 
 	if (error) {
-		device_printf(dev, "could not allocate dma tag\n");
+		device_printf(dev, "could not allocate %s dma tag\n", "tx");
 		return (ENOMEM);
 	}
 
@@ -167,7 +172,7 @@
 			&sc->bfe_rx_tag);
 
 	if (error) {
-		device_printf(dev, "could not allocate dma tag\n");
+		device_printf(dev, "could not allocate %s dma tag\n", "rx");
 		return (ENOMEM);
 	}
 
@@ -185,7 +190,7 @@
 			&sc->bfe_tag);
 
 	if (error) {
-		device_printf(dev, "could not allocate dma tag\n");
+		device_printf(dev, "could not allocate %s dma tag\n", "mbuf");
 		return (ENOMEM);
 	}
 



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