summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-16 06:46:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-16 06:46:19 +0000
commitf5b146adce2379fed5370e188dee1a674c8ba143 (patch)
tree756d330e631c557c1affd9bf234ca58579d3fd0f
parent17f54a736313542ce88092c876618191a77cb8ab (diff)
even nicer
-rw-r--r--sys/dev/pcmcia/pcmcia.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/dev/pcmcia/pcmcia.c b/sys/dev/pcmcia/pcmcia.c
index e07f6d0aa87..06dd95f5c65 100644
--- a/sys/dev/pcmcia/pcmcia.c
+++ b/sys/dev/pcmcia/pcmcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcmcia.c,v 1.20 1999/08/16 06:21:13 deraadt Exp $ */
+/* $OpenBSD: pcmcia.c,v 1.21 1999/08/16 06:46:18 deraadt Exp $ */
/* $NetBSD: pcmcia.c,v 1.9 1998/08/13 02:10:55 eeh Exp $ */
/*
@@ -297,12 +297,8 @@ pcmcia_print(arg, pnp)
int i;
if (pnp) {
- printf("\"");
- for (i = 0; i < 4 && card->cis1_info[i]; i++) {
- if (i)
- printf(", ");
- printf("%s", card->cis1_info[i]);
- }
+ for (i = 0; i < 4 && card->cis1_info[i]; i++)
+ printf("%s%s", i ? ", " : " \"", card->cis1_info[i]);
printf("\"");
if (card->manufacturer != -1 && card->product != -1) {
@@ -325,12 +321,8 @@ pcmcia_print(arg, pnp)
printf(" function %d", pa->pf->number);
if (!pnp) {
- printf(" \"");
- for (i = 0; i < 3 && card->cis1_info[i]; i++) {
- if (i)
- printf(" ");
- printf("%s", card->cis1_info[i]);
- }
+ for (i = 0; i < 3 && card->cis1_info[i]; i++)
+ printf("%s%s", i ? ", " : " \"", card->cis1_info[i]);
printf("\"");
}