diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2001-12-14 05:56:35 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2001-12-14 05:56:35 +0000 |
commit | 268cc039050abb8bbba3efed73719170838a3e66 (patch) | |
tree | 1eb55d37853a849027d5e26a1610989f6a3945e2 /sys/dev/sf | |
parent | d8bddaa85dc46872465ad1b9eb4d663407a24bfb (diff) | |
download | src-268cc039050abb8bbba3efed73719170838a3e66.tar.gz src-268cc039050abb8bbba3efed73719170838a3e66.zip |
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
Notes
Notes:
svn path=/head/; revision=87846
Diffstat (limited to 'sys/dev/sf')
-rw-r--r-- | sys/dev/sf/if_sf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 487b48fb9e0c..8ebc2f5bf0ab 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -908,16 +908,11 @@ static int sf_newbuf(sc, c, m) if (m == NULL) { MGETHDR(m_new, M_DONTWAIT, MT_DATA); - if (m_new == NULL) { - printf("sf%d: no memory for rx list -- " - "packet dropped!\n", sc->sf_unit); + if (m_new == NULL) return(ENOBUFS); - } MCLGET(m_new, M_DONTWAIT); if (!(m_new->m_flags & M_EXT)) { - printf("sf%d: no memory for rx list -- " - "packet dropped!\n", sc->sf_unit); m_freem(m_new); return(ENOBUFS); } |