summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormlelstv <mlelstv@NetBSD.org>2020-10-17 09:36:45 +0000
committermlelstv <mlelstv@NetBSD.org>2020-10-17 09:36:45 +0000
commit9b94d956c04a8a0a85fabdc44a21cf3d04b6bf3a (patch)
tree81e0f619c7ef8d2ecf5b68c6cfb66ae24617c869 /sys/dev
parent5f0b43e5eef892a65b6fd31d16eee2fece597d95 (diff)
Fix error message. No functional change, both commands use the same
bit to select read or write mode.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sdmmc/sdmmc_io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdmmc_io.c b/sys/dev/sdmmc/sdmmc_io.c
index 690617857a8..23cdd8aec98 100644
--- a/sys/dev/sdmmc/sdmmc_io.c
+++ b/sys/dev/sdmmc/sdmmc_io.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sdmmc_io.c,v 1.20 2020/05/24 17:26:18 riastradh Exp $ */
+/* $NetBSD: sdmmc_io.c,v 1.21 2020/10/17 09:36:45 mlelstv Exp $ */
/* $OpenBSD: sdmmc_io.c,v 1.10 2007/09/17 01:33:33 krw Exp $ */
/*
@@ -20,7 +20,7 @@
/* Routines for SD I/O cards. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdmmc_io.c,v 1.20 2020/05/24 17:26:18 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_io.c,v 1.21 2020/10/17 09:36:45 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -375,7 +375,7 @@ sdmmc_io_rw_direct(struct sdmmc_softc *sc, struct sdmmc_function *sf,
device_printf(sc->sc_dev,
"direct I/O error %d, r=%d p=%p %s\n",
error, reg, datap,
- ISSET(arg, SD_ARG_CMD53_WRITE) ? "write" : "read");
+ ISSET(arg, SD_ARG_CMD52_WRITE) ? "write" : "read");
}
return error;