Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc Display the whole CID register upon attach as ...



details:   https://anonhg.NetBSD.org/src/rev/5fd56ca982c9
branches:  trunk
changeset: 783320:5fd56ca982c9
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Dec 14 23:53:56 2012 +0000

description:
Display the whole CID register upon attach as "<MID:OID:PNM:PRV:PSN:MDT>"
instead of just "<PNM>".  Probably should figure out a way to stuff this
into the device properties database too, but not everything has
pseudo-device drvctl enabled.

Also, drop trailing whitespace.

diffstat:

 sys/dev/sdmmc/ld_sdmmc.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r f4f177fc93de -r 5fd56ca982c9 sys/dev/sdmmc/ld_sdmmc.c
--- a/sys/dev/sdmmc/ld_sdmmc.c  Fri Dec 14 23:26:17 2012 +0000
+++ b/sys/dev/sdmmc/ld_sdmmc.c  Fri Dec 14 23:53:56 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld_sdmmc.c,v 1.10 2012/02/02 19:43:06 tls Exp $        */
+/*     $NetBSD: ld_sdmmc.c,v 1.11 2012/12/14 23:53:56 jakllsch Exp $   */
 
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.10 2012/02/02 19:43:06 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.11 2012/12/14 23:53:56 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -113,7 +113,9 @@
 
        ld->sc_dv = self;
 
-       aprint_normal(": <%s>\n", sa->sf->cid.pnm);
+       aprint_normal(": <0x%02x:0x%04x:%s:0x%02x:0x%08x:0x%03x>\n",
+           sa->sf->cid.mid, sa->sf->cid.oid, sa->sf->cid.pnm,
+           sa->sf->cid.rev, sa->sf->cid.psn, sa->sf->cid.mdt);
        aprint_naive("\n");
 
        callout_init(&sc->sc_task.task_callout, CALLOUT_MPSAFE);
@@ -130,7 +132,7 @@
        ld->sc_start = ld_sdmmc_start;
 
        /*
-        * It is avoided that the error occurs when the card attaches it, 
+        * It is avoided that the error occurs when the card attaches it,
         * when wedge is supported.
         */
        config_pending_incr();



Home | Main Index | Thread Index | Old Index