pwm_backlight: Fix 32 bits build
Reported by: jenkins, mjg
This commit is contained in:
parent
73f6606b47
commit
b48668250e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366386
@ -141,8 +141,8 @@ pwm_backlight_attach(device_t dev)
|
|||||||
|
|
||||||
if (bootverbose) {
|
if (bootverbose) {
|
||||||
device_printf(dev, "Number of levels: %zd\n", sc->nlevels);
|
device_printf(dev, "Number of levels: %zd\n", sc->nlevels);
|
||||||
device_printf(dev, "Configured period time: %lu\n", sc->channel->period);
|
device_printf(dev, "Configured period time: %ju\n", (uintmax_t)sc->channel->period);
|
||||||
device_printf(dev, "Default duty cycle: %lu\n", sc->channel->duty);
|
device_printf(dev, "Default duty cycle: %ju\n", (uintmax_t)sc->channel->duty);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Get the current backlight level */
|
/* Get the current backlight level */
|
||||||
@ -153,8 +153,8 @@ pwm_backlight_attach(device_t dev)
|
|||||||
if (sc->channel->duty > sc->channel->period)
|
if (sc->channel->duty > sc->channel->period)
|
||||||
sc->channel->duty = sc->channel->period;
|
sc->channel->duty = sc->channel->period;
|
||||||
if (bootverbose) {
|
if (bootverbose) {
|
||||||
device_printf(dev, "Configured period time: %lu\n", sc->channel->period);
|
device_printf(dev, "Configured period time: %ju\n", (uintmax_t)sc->channel->period);
|
||||||
device_printf(dev, "Default duty cycle: %lu\n", sc->channel->duty);
|
device_printf(dev, "Default duty cycle: %ju\n", (uintmax_t)sc->channel->duty);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user