svn commit: r342007 - head/usr.sbin/pwm

Emmanuel Vadot manu at FreeBSD.org
Wed Dec 12 21:25:53 UTC 2018


Author: manu
Date: Wed Dec 12 21:25:52 2018
New Revision: 342007
URL: https://svnweb.freebsd.org/changeset/base/342007

Log:
  pwm: Fix some arches by using %ju and casting to uintmax_t
  
  Reported by:	ci.freebsd.org

Modified:
  head/usr.sbin/pwm/pwm.c

Modified: head/usr.sbin/pwm/pwm.c
==============================================================================
--- head/usr.sbin/pwm/pwm.c	Wed Dec 12 21:10:34 2018	(r342006)
+++ head/usr.sbin/pwm/pwm.c	Wed Dec 12 21:25:52 2018	(r342007)
@@ -190,9 +190,9 @@ main(int argc, char *argv[])
 		}
 		break;
 	case PWM_SHOW_CONFIG:
-		printf("period: %lu\nduty: %lu\nenabled:%d\n",
-		    state.period,
-		    state.duty,
+		printf("period: %ju\nduty: %ju\nenabled:%d\n",
+		    (uintmax_t) state.period,
+		    (uintmax_t) state.duty,
 		    state.enable);
 		break;
 	case PWM_PERIOD:


More information about the svn-src-all mailing list