Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt No need to print all supported levels at attach,...
details: https://anonhg.NetBSD.org/src/rev/47800561505a
branches: trunk
changeset: 968055:47800561505a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Jan 01 12:55:03 2020 +0000
description:
No need to print all supported levels at attach, print the range and total number of steps
diffstat:
sys/dev/fdt/pwm_backlight.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r f4c6530b29c3 -r 47800561505a sys/dev/fdt/pwm_backlight.c
--- a/sys/dev/fdt/pwm_backlight.c Wed Jan 01 12:47:19 2020 +0000
+++ b/sys/dev/fdt/pwm_backlight.c Wed Jan 01 12:55:03 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pwm_backlight.c,v 1.4 2018/05/10 13:11:21 jmcneill Exp $ */
+/* $NetBSD: pwm_backlight.c,v 1.5 2020/01/01 12:55:03 jmcneill Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pwm_backlight.c,v 1.4 2018/05/10 13:11:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pwm_backlight.c,v 1.5 2020/01/01 12:55:03 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -117,11 +117,11 @@
aprint_naive("\n");
aprint_normal(": PWM Backlight");
- aprint_verbose(" <");
- for (n = 0; n < sc->sc_nlevels; n++) {
- aprint_verbose("%s%u", n ? " " : "", sc->sc_levels[n]);
+ if (sc->sc_nlevels > 1) {
+ aprint_normal(", %u-%u (%u steps)",
+ sc->sc_levels[0], sc->sc_levels[sc->sc_nlevels - 1],
+ sc->sc_nlevels);
}
- aprint_verbose(">");
aprint_normal("\n");
sc->sc_lid_state = true;
Home |
Main Index |
Thread Index |
Old Index