svn commit: r254425 - head/sys/dev/mmc

Ian Lepore ian at FreeBSD.org
Fri Aug 16 20:22:58 UTC 2013


Author: ian
Date: Fri Aug 16 20:22:57 2013
New Revision: 254425
URL: http://svnweb.freebsd.org/changeset/base/254425

Log:
  Print the card relative address in hex, because that's what all the
  other debugging output does (when it appears in command arguments,
  for example).

Modified:
  head/sys/dev/mmc/mmc.c

Modified: head/sys/dev/mmc/mmc.c
==============================================================================
--- head/sys/dev/mmc/mmc.c	Fri Aug 16 19:44:49 2013	(r254424)
+++ head/sys/dev/mmc/mmc.c	Fri Aug 16 20:22:57 2013	(r254425)
@@ -1209,7 +1209,7 @@ mmc_set_blocklen(struct mmc_softc *sc, u
 static void
 mmc_log_card(device_t dev, struct mmc_ivars *ivar, int newcard)
 {
-	device_printf(dev, "Card at relative address %d%s:\n",
+	device_printf(dev, "Card at relative address 0x%04x%s:\n",
 	    ivar->rca, newcard ? " added" : "");
 	device_printf(dev, " card: %s\n", ivar->card_id_string);
 	device_printf(dev, " bus: %ubit, %uMHz%s\n",


More information about the svn-src-all mailing list