summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rl.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2001-12-14 05:56:35 +0000
committerluigi <luigi@FreeBSD.org>2001-12-14 05:56:35 +0000
commitbf2556cfad12b040393aa6a33ea80a5adb0b51d6 (patch)
tree1eb55d37853a849027d5e26a1610989f6a3945e2 /sys/pci/if_rl.c
parentd3b383005d81dc439c329c685a134957e3c0b5f7 (diff)
downloadFreeBSD-src-bf2556cfad12b040393aa6a33ea80a5adb0b51d6.zip
FreeBSD-src-bf2556cfad12b040393aa6a33ea80a5adb0b51d6.tar.gz
Remove printf's on mbuf/cluster allocation failures. There are now
equivalent and less dangerous (rate limited) messages in the mbuf allocation code. MFC after: 3 days
Diffstat (limited to 'sys/pci/if_rl.c')
-rw-r--r--sys/pci/if_rl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index bc92a00..980404f 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -1413,16 +1413,12 @@ static int rl_encap(sc, m_head)
*/
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
- if (m_new == NULL) {
- printf("rl%d: no memory for tx list", sc->rl_unit);
+ if (m_new == NULL)
return(1);
- }
if (m_head->m_pkthdr.len > MHLEN) {
MCLGET(m_new, M_DONTWAIT);
if (!(m_new->m_flags & M_EXT)) {
m_freem(m_new);
- printf("rl%d: no memory for tx list",
- sc->rl_unit);
return(1);
}
}
OpenPOWER on IntegriCloud