From 84efaa5d696a32c0e6aea8f3e396e930cde765f8 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 26 Jan 2012 02:20:12 +0000 Subject: [PATCH] Print error if couldn't enable card. --- sys/dev/sdmmc/sdmmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/sdmmc/sdmmc.c b/sys/dev/sdmmc/sdmmc.c index 3d70519e82f8..bcf7b17ff9f5 100644 --- a/sys/dev/sdmmc/sdmmc.c +++ b/sys/dev/sdmmc/sdmmc.c @@ -1,4 +1,4 @@ -/* $NetBSD: sdmmc.c,v 1.10 2012/01/21 19:44:31 nonaka Exp $ */ +/* $NetBSD: sdmmc.c,v 1.11 2012/01/26 02:20:12 matt Exp $ */ /* $OpenBSD: sdmmc.c,v 1.18 2009/01/09 10:58:38 jsg Exp $ */ /* @@ -49,7 +49,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sdmmc.c,v 1.10 2012/01/21 19:44:31 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sdmmc.c,v 1.11 2012/01/26 02:20:12 matt Exp $"); #include #include @@ -346,7 +346,7 @@ sdmmc_card_attach(struct sdmmc_softc *sc) error = sdmmc_enable(sc); if (error) { if (!ISSET(sc->sc_caps, SMC_CAPS_POLL_CARD_DET)) { - aprint_error_dev(sc->sc_dev, "couldn't enable card\n"); + aprint_error_dev(sc->sc_dev, "couldn't enable card: %d\n", error); } goto err; }