Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia don't put a trailing comma in pcmcia_devinfo....



details:   https://anonhg.NetBSD.org/src/rev/5e8d3220a670
branches:  trunk
changeset: 509220:5e8d3220a670
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 29 20:10:24 2001 +0000

description:
don't put a trailing comma in pcmcia_devinfo. All the drivers use
printf("%s\n", devinfo) and it looks stupid.

diffstat:

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

diffs (27 lines):

diff -r 25414dcd59a9 -r 5e8d3220a670 sys/dev/pcmcia/pcmcia.c
--- a/sys/dev/pcmcia/pcmcia.c   Sun Apr 29 19:18:20 2001 +0000
+++ b/sys/dev/pcmcia/pcmcia.c   Sun Apr 29 20:10:24 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $     */
+/*     $NetBSD: pcmcia.c,v 1.24 2001/04/29 20:10:24 christos Exp $     */
 
 #define        PCMCIADEBUG
 
@@ -297,7 +297,7 @@
 
        if (pnp) {
                pcmcia_devinfo(card, 1, devinfo, sizeof devinfo);
-               printf("%s at %s", devinfo, pnp);
+               printf("%s at %s, ", devinfo, pnp);
        }
        printf(" function %d", pa->pf->number);
 
@@ -314,7 +314,7 @@
        int i, n;
 
        for (i = 0; i < 4 && card->cis1_info[i] != NULL && cplen > 0; i++) {
-               n = snprintf(cp, cplen, "%s%s", i ? ", " : "",
+               n = snprintf(cp, cplen, "%s%s", (i && i != 3) ? ", " : "",
                        card->cis1_info[i]);
                cp += n;
                cplen -= n;



Home | Main Index | Thread Index | Old Index