PERFORCE change 119804 for review
Bruce M Simpson
bms at FreeBSD.org
Sun May 13 23:59:35 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=119804
Change 119804 by bms at 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);
}
More information about the p4-projects
mailing list