From 4dd854da74b4fe3c74b0307b98f2038e92515002 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 12 Jan 2018 16:25:32 +0100 Subject: [PATCH] cpu/cc2538: DEBUG fixes --- cpu/cc2538/periph/timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/cc2538/periph/timer.c b/cpu/cc2538/periph/timer.c index c36d0f9999..f4c7e42077 100644 --- a/cpu/cc2538/periph/timer.c +++ b/cpu/cc2538/periph/timer.c @@ -132,7 +132,8 @@ int timer_init(tim_t tim, unsigned long freq, timer_cb_t cb, void *arg) } if (freq != sys_clock_freq()) { - DEBUG("In 32-bit mode, the GPTimer frequency must equal the system clock frequency (%u).", sys_clock_freq()); + DEBUG("In 32-bit mode, the GPTimer frequency must equal the system clock frequency (%u).\n", + (unsigned)sys_clock_freq()); return -1; } }