From owner-svn-src-head@FreeBSD.ORG Wed Jan 28 23:18:22 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0249E106566B; Wed, 28 Jan 2009 23:18:22 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E54828FC1C; Wed, 28 Jan 2009 23:18:21 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0SNIL6A036272; Wed, 28 Jan 2009 23:18:21 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0SNIL8E036271; Wed, 28 Jan 2009 23:18:21 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <200901282318.n0SNIL8E036271@svn.freebsd.org> From: Alexander Motin Date: Wed, 28 Jan 2009 23:18:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187877 - head/sys/dev/mmc X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 23:18:22 -0000 Author: mav Date: Wed Jan 28 23:18:21 2009 New Revision: 187877 URL: http://svn.freebsd.org/changeset/base/187877 Log: Add one more debug level. Modified: head/sys/dev/mmc/mmc.c Modified: head/sys/dev/mmc/mmc.c ============================================================================== --- head/sys/dev/mmc/mmc.c Wed Jan 28 22:53:41 2009 (r187876) +++ head/sys/dev/mmc/mmc.c Wed Jan 28 23:18:21 2009 (r187877) @@ -321,7 +321,7 @@ mmc_wait_for_req(struct mmc_softc *sc, s req->done = mmc_wakeup; req->done_data = sc; - if (mmc_debug) { + if (mmc_debug > 1) { device_printf(sc->dev, "REQUEST: CMD%d arg %#x flags %#x", req->cmd->opcode, req->cmd->arg, req->cmd->flags); if (req->cmd->data) { @@ -334,7 +334,7 @@ mmc_wait_for_req(struct mmc_softc *sc, s while ((req->flags & MMC_REQ_DONE) == 0) msleep(req, &sc->sc_mtx, 0, "mmcreq", 0); MMC_UNLOCK(sc); - if (mmc_debug > 1 || (mmc_debug && req->cmd->error)) + if (mmc_debug > 2 || (mmc_debug > 1 && req->cmd->error)) device_printf(sc->dev, "RESULT: %d\n", req->cmd->error); return (0); }