From bf2556cfad12b040393aa6a33ea80a5adb0b51d6 Mon Sep 17 00:00:00 2001 From: luigi Date: Fri, 14 Dec 2001 05:56:35 +0000 Subject: 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 --- sys/pci/if_sk.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/pci/if_sk.c') diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index 8604209..5ba23f5 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/if_sk.c @@ -672,11 +672,8 @@ static int sk_newbuf(sc_if, c, m) caddr_t *buf = NULL; MGETHDR(m_new, M_DONTWAIT, MT_DATA); - if (m_new == NULL) { - printf("sk%d: no memory for rx list -- " - "packet dropped!\n", sc_if->sk_unit); + if (m_new == NULL) return(ENOBUFS); - } /* Allocate the jumbo buffer */ buf = sk_jalloc(sc_if); -- cgit v1.1