summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjung <jung@openbsd.org>2015-10-04 20:00:50 +0000
committerjung <jung@openbsd.org>2015-10-04 20:00:50 +0000
commita4c3bbb1c858cd7f469f5e8370082d69e29793c0 (patch)
tree8cb2edec6a23e508245e22532c15ec2d98235210
parentdmesg has two modes. The normal sysctl mode, and the -M/-N kvm searcher. (diff)
downloadwireguard-openbsd-a4c3bbb1c858cd7f469f5e8370082d69e29793c0.tar.xz
wireguard-openbsd-a4c3bbb1c858cd7f469f5e8370082d69e29793c0.zip
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;
}