Date: Sat, 3 Oct 2020 08:31:28 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366386 - head/sys/dev/pwm Message-ID: <202010030831.0938VSGp046465@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Sat Oct 3 08:31:28 2020 New Revision: 366386 URL: https://svnweb.freebsd.org/changeset/base/366386 Log: pwm_backlight: Fix 32 bits build Reported by: jenkins, mjg Modified: head/sys/dev/pwm/pwm_backlight.c Modified: head/sys/dev/pwm/pwm_backlight.c ============================================================================== --- head/sys/dev/pwm/pwm_backlight.c Sat Oct 3 02:26:38 2020 (r366385) +++ head/sys/dev/pwm/pwm_backlight.c Sat Oct 3 08:31:28 2020 (r366386) @@ -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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010030831.0938VSGp046465>