From owner-p4-projects@FreeBSD.ORG Sun May 13 23:59:35 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2400916A408; Sun, 13 May 2007 23:59:35 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4A8B16A402 for ; Sun, 13 May 2007 23:59:34 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id C255D13C46A for ; Sun, 13 May 2007 23:59:34 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l4DNxYYe005665 for ; Sun, 13 May 2007 23:59:34 GMT (envelope-from bms@incunabulum.net) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l4DNxYht005648 for perforce@freebsd.org; Sun, 13 May 2007 23:59:34 GMT (envelope-from bms@incunabulum.net) Date: Sun, 13 May 2007 23:59:34 GMT Message-Id: <200705132359.l4DNxYht005648@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bms@incunabulum.net using -f From: Bruce M Simpson To: Perforce Change Reviews Cc: Subject: PERFORCE change 119804 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 23:59:35 -0000 http://perforce.freebsd.org/chv.cgi?CH=119804 Change 119804 by bms@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); }