summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jung <jung@cvs.openbsd.org>2015-10-04 20:00:51 +0000
committerJoerg Jung <jung@cvs.openbsd.org>2015-10-04 20:00:51 +0000
commit2513a514d63bbc74872d871b916090cb70e06a96 (patch)
tree5e544254f13cb9ca2105fb73609d10ebbcfa82e1
parentc945f58d0b75d4bfbe966aa8285cc37578ddeeaa (diff)
tweak initial output a bit: do not show number of light sensors, just show if
some is found or not, also remove kbdled output as there is no (known) way to test if (not) available at all
-rw-r--r--sys/dev/isa/asmc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/asmc.c b/sys/dev/isa/asmc.c
index 39c98b62bef..1ca71dfa59d 100644
--- a/sys/dev/isa/asmc.c
+++ b/sys/dev/isa/asmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asmc.c,v 1.7 2015/10/04 12:07:58 jung Exp $ */
+/* $OpenBSD: asmc.c,v 1.8 2015/10/04 20:00:50 jung Exp $ */
/*
* Copyright (c) 2015 Joerg Jung <jung@openbsd.org>
*
@@ -567,7 +567,7 @@ asmc_init(struct asmc_softc *sc)
printf(", light sensors failed\n");
return 1;
}
- printf(", %u light%s", n, (n == 1) ? "" : "s");
+ printf("%s", n ? ", lights" : "");
if (asmc_motions(sc, &n)) { /* motion sensors are optional */
printf(", sudden motion sensors failed\n");
@@ -581,7 +581,7 @@ asmc_init(struct asmc_softc *sc)
printf(", keyboard backlight failed (0x%x)\n", s);
return 1;
}
- printf("%s\n", (s == ASMC_NOTFOUND) ? "" : ", kbdled");
+ printf("\n");
return 0;
}