From d024bca68e84c7b9cdd7e597908398ce7c1512fb Mon Sep 17 00:00:00 2001 From: Sylvio Alves Date: Fri, 17 Oct 2025 08:36:50 -0300 Subject: [PATCH] tests: driver: pwm_loopback: fix zassert string formatting Add missing "%" symbol. Signed-off-by: Sylvio Alves --- tests/drivers/pwm/pwm_loopback/src/test_pwm_loopback.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/drivers/pwm/pwm_loopback/src/test_pwm_loopback.c b/tests/drivers/pwm/pwm_loopback/src/test_pwm_loopback.c index 5320d087de560..73448d018d630 100644 --- a/tests/drivers/pwm/pwm_loopback/src/test_pwm_loopback.c +++ b/tests/drivers/pwm/pwm_loopback/src/test_pwm_loopback.c @@ -96,12 +96,12 @@ static void test_capture(uint32_t period, uint32_t pulse, enum test_pwm_unit uni if (flags & PWM_CAPTURE_TYPE_PERIOD) { zassert_within(period_capture, period, period / 100, - "period capture off by more than 1%"); + "period capture off by more than 1%%"); } if (flags & PWM_CAPTURE_TYPE_PULSE) { zassert_within(pulse_capture, pulse, pulse / 100, - "pulse capture off by more than 1%"); + "pulse capture off by more than 1%%"); } } @@ -272,10 +272,10 @@ ZTEST(pwm_loopback, test_continuous_capture) if (data.pulse_capture) { zassert_within(usec, TEST_PWM_PULSE_USEC, TEST_PWM_PULSE_USEC / 100, - "pulse capture off by more than 1%"); + "pulse capture off by more than 1%%"); } else { zassert_within(usec, TEST_PWM_PERIOD_USEC, TEST_PWM_PERIOD_USEC / 100, - "period capture off by more than 1%"); + "period capture off by more than 1%%"); } } }