From 9e63671eab401341de3f2a17c7e7f0ad2c0e0a41 Mon Sep 17 00:00:00 2001 From: Semjon Kerner Date: Mon, 13 Aug 2018 17:45:47 +0200 Subject: [PATCH] cpu/nrf51: fix formatting uint to PRIu32 --- cpu/nrf51/periph/pwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/nrf51/periph/pwm.c b/cpu/nrf51/periph/pwm.c index 5749dec504..ab74b9def3 100644 --- a/cpu/nrf51/periph/pwm.c +++ b/cpu/nrf51/periph/pwm.c @@ -20,6 +20,7 @@ #include #include +#include #include "periph/gpio.h" #include "periph/pwm.h" @@ -113,7 +114,7 @@ uint32_t pwm_init(pwm_t dev, pwm_mode_t mode, uint32_t freq, uint16_t res) /* start pwm with value '0' */ pwm_set(dev, 0, 0); - DEBUG("Timer frequency is set to %ld\n", timer_freq); + DEBUG("Timer frequency is set to %" PRIu32 "\n", timer_freq); return (uint32_t)(timer_freq / res); }