diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2020-10-03 08:31:28 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2020-10-03 08:31:28 +0000 |
| commit | b48668250ed28c80c926ce7d26176b86da5833cd (patch) | |
| tree | 315220aa1904ca4605cdfaf923e78a2f0a87e126 /sys/dev/pwm | |
| parent | 73f6606b4775df5a07e96155bf225ebd0627383a (diff) | |
Notes
Diffstat (limited to 'sys/dev/pwm')
| -rw-r--r-- | sys/dev/pwm/pwm_backlight.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pwm/pwm_backlight.c b/sys/dev/pwm/pwm_backlight.c index e99437b37b7f..352a5a02fed5 100644 --- a/sys/dev/pwm/pwm_backlight.c +++ b/sys/dev/pwm/pwm_backlight.c @@ -141,8 +141,8 @@ pwm_backlight_attach(device_t dev) if (bootverbose) { device_printf(dev, "Number of levels: %zd\n", sc->nlevels); - device_printf(dev, "Configured period time: %lu\n", sc->channel->period); - device_printf(dev, "Default duty cycle: %lu\n", sc->channel->duty); + device_printf(dev, "Configured period time: %ju\n", (uintmax_t)sc->channel->period); + device_printf(dev, "Default duty cycle: %ju\n", (uintmax_t)sc->channel->duty); } } else { /* Get the current backlight level */ @@ -153,8 +153,8 @@ pwm_backlight_attach(device_t dev) if (sc->channel->duty > sc->channel->period) sc->channel->duty = sc->channel->period; if (bootverbose) { - device_printf(dev, "Configured period time: %lu\n", sc->channel->period); - device_printf(dev, "Default duty cycle: %lu\n", sc->channel->duty); + device_printf(dev, "Configured period time: %ju\n", (uintmax_t)sc->channel->period); + device_printf(dev, "Default duty cycle: %ju\n", (uintmax_t)sc->channel->duty); } } |
