Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia - Use aprint() more in isic_pcmcia_attach().



details:   https://anonhg.NetBSD.org/src/rev/9ce5a5e7ca21
branches:  trunk
changeset: 816611:9ce5a5e7ca21
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 14 09:27:14 2016 +0000

description:
- Use aprint() more in isic_pcmcia_attach().
- Add missing aprint_naive("\n").
- swap device_xname() and cde->name in the output of a printf().

diffstat:

 sys/dev/pcmcia/isic_pcmcia.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r df5799df8ba8 -r 9ce5a5e7ca21 sys/dev/pcmcia/isic_pcmcia.c
--- a/sys/dev/pcmcia/isic_pcmcia.c      Thu Jul 14 07:19:11 2016 +0000
+++ b/sys/dev/pcmcia/isic_pcmcia.c      Thu Jul 14 09:27:14 2016 +0000
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isic_pcmcia.c,v 1.42 2016/07/11 11:31:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isic_pcmcia.c,v 1.43 2016/07/14 09:27:14 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/errno.h>
@@ -202,6 +202,7 @@
        cfe = SIMPLEQ_FIRST(&pa->pf->cfe_head);
        psc->sc_ih = NULL;
 
+       aprint_naive("\n");
        /* Which card is it? */
        cde = find_matching_card(pa);
        if (cde == NULL) {
@@ -209,7 +210,7 @@
                    "attach failed, couldn't find matching card\n");
                return;
        }
-       printf("%s: %s\n", cde->name, device_xname(self));
+       aprint_normal_dev(self, "%s\n", cde->name);
 
        /* Enable the card */
        pcmcia_function_init(pa->pf, cfe);



Home | Main Index | Thread Index | Old Index