diff options
author | luigi <luigi@FreeBSD.org> | 2001-12-14 05:56:35 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-12-14 05:56:35 +0000 |
commit | bf2556cfad12b040393aa6a33ea80a5adb0b51d6 (patch) | |
tree | 1eb55d37853a849027d5e26a1610989f6a3945e2 /sys/dev/vr | |
parent | d3b383005d81dc439c329c685a134957e3c0b5f7 (diff) | |
download | FreeBSD-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/dev/vr')
-rw-r--r-- | sys/dev/vr/if_vr.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index f037294..0956396 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -924,16 +924,11 @@ static int vr_newbuf(sc, c, m) if (m == NULL) { MGETHDR(m_new, M_DONTWAIT, MT_DATA); - if (m_new == NULL) { - printf("vr%d: no memory for rx list " - "-- packet dropped!\n", sc->vr_unit); + if (m_new == NULL) return(ENOBUFS); - } MCLGET(m_new, M_DONTWAIT); if (!(m_new->m_flags & M_EXT)) { - printf("vr%d: no memory for rx list " - "-- packet dropped!\n", sc->vr_unit); m_freem(m_new); return(ENOBUFS); } |