diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c index 2f89e2eea937..45012bde517c 100644 --- a/sys/dev/led/led.c +++ b/sys/dev/led/led.c @@ -173,6 +173,8 @@ led_write(dev_t dev, struct uio *uio, int ioflag) sbuf_cat(sb, "Ac"); else if (*s == ' ') sbuf_cat(sb, "B"); + else if (*s == '\n') + sbuf_cat(sb, "D"); } sbuf_cat(sb, "J"); break; diff --git a/sys/dev/led/led.h b/sys/dev/led/led.h index 70655af729f1..5bd1ebec6242 100644 --- a/sys/dev/led/led.h +++ b/sys/dev/led/led.h @@ -16,6 +16,6 @@ __FBSDID("$FreeBSD$"); typedef void led_t(void *, int); dev_t led_create(led_t *func, void *priv, char const *name); -void led_destroy(dev_t); +void led_destroy(dev_t *dev); #endif /* _DEV_LED_H */