From bf919b466d69f577d2dae1dd5217488f1336e43b Mon Sep 17 00:00:00 2001 From: mlelstv Date: Sun, 13 Jun 2021 09:50:02 +0000 Subject: Be less verbose normally and more when debugging. --- sys/dev/sdmmc/sdmmc_mem.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/sdmmc/sdmmc_mem.c b/sys/dev/sdmmc/sdmmc_mem.c index 43328290dc0..493ad565949 100644 --- a/sys/dev/sdmmc/sdmmc_mem.c +++ b/sys/dev/sdmmc/sdmmc_mem.c @@ -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 -__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; } -- cgit netbsd/commit/sys/arch/sandpoint/include/varargs.h'>commitdiff
AgeCommit message (Collapse)Author
2011-07-17Retire varargs.h support. Move machine/stdarg.h logic into MIjoerg
sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
2001-02-04Support for the Motorola Sandpoint reference platform using thebriggs
MPC8240 processor module. See the README for more information.