From 04b58da24961be3e11156cfa0c8b15f8455bc6d0 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Thu, 19 Jul 2018 20:35:00 +0200 Subject: [PATCH] tests: use literal string instead of format string for interval `UINT16_MAX` should be the same value on all platforms, so why not use `puts` instead of `printf` here instead. Also, `llvm` detects an issue with using the `UINT16_MAX` macro with `PRIu16` here. --- tests/periph_pwm/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/periph_pwm/main.c b/tests/periph_pwm/main.c index 04162d84ab..7e2ce4f239 100644 --- a/tests/periph_pwm/main.c +++ b/tests/periph_pwm/main.c @@ -64,7 +64,7 @@ static int _init(int argc, char** argv) puts("\t\t1: right aligned\n"); puts("\t\t2: center aligned\n"); puts("\tfrequency: desired frequency in Hz\n"); - printf("\tresolution: number between 2 and %" PRIu16 "\n", UINT16_MAX); + puts("\tresolution: number between 2 and 65535"); return 1; }