From d9848bd2542727dff5a488bcec7fa8c99e11b84c Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Wed, 12 Dec 2018 21:25:52 +0000 Subject: [PATCH] pwm: Fix some arches by using %ju and casting to uintmax_t Reported by: ci.freebsd.org --- usr.sbin/pwm/pwm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pwm/pwm.c b/usr.sbin/pwm/pwm.c index 661cadbc936..394840328fa 100644 --- a/usr.sbin/pwm/pwm.c +++ b/usr.sbin/pwm/pwm.c @@ -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: