Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sdmmc Be less verbose normally and more when debugging.



details:   https://anonhg.NetBSD.org/src/rev/17d279b881c7
branches:  trunk
changeset: 379653:17d279b881c7
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 13 09:50:02 2021 +0000

description:
Be less verbose normally and more when debugging.

diffstat:

 sys/dev/sdmmc/sdmmc_mem.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 19aec0be2cea -r 17d279b881c7 sys/dev/sdmmc/sdmmc_mem.c
--- a/sys/dev/sdmmc/sdmmc_mem.c Sun Jun 13 09:48:04 2021 +0000
+++ b/sys/dev/sdmmc/sdmmc_mem.c Sun Jun 13 09:50:02 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdmmc_mem.c,v 1.72 2020/05/11 09:51:47 jdc Exp $       */
+/*     $NetBSD: sdmmc_mem.c,v 1.73 2021/06/13 09:50:02 mlelstv Exp $   */
 /*     $OpenBSD: sdmmc_mem.c,v 1.10 2009/01/09 10:55:22 jsg Exp $      */
 
 /*
@@ -45,7 +45,7 @@
 /* Routines for SD/MMC memory cards. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.72 2020/05/11 09:51:47 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.73 2021/06/13 09:50:02 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -255,8 +255,11 @@ mmc_mode:
                }
 
                error = sdmmc_mem_signal_voltage(sc, SDMMC_SIGNAL_VOLTAGE_180);
-               if (error)
+               if (error) {
+                       DPRINTF(("%s: voltage change on host failed\n",
+                           SDMMCDEVNAME(sc)));
                        goto out;
+               }
 
                SET(sc->sc_flags, SMF_UHS_MODE);
        }
@@ -264,10 +267,6 @@ mmc_mode:
 out:
        SDMMC_UNLOCK(sc);
 
-       if (error)
-               printf("%s: %s failed with error %d\n", SDMMCDEVNAME(sc),
-                   __func__, error);
-
        return error;
 }
 



Home | Main Index | Thread Index | Old Index