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);
                }
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to