From 6f78544fd9cde6a3fa6c6625acf435ed5e73ef31 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Sun, 4 Jul 2021 12:28:07 +0900 Subject: [PATCH] boards: cxd56xx: Fix some printf format warnings Fix some warnings by -Wformat. --- boards/arm/cxd56xx/spresense/src/cxd56_pwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c b/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c index d211c62787..ebcf01a1d1 100644 --- a/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c +++ b/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c @@ -60,13 +60,13 @@ static int pwm_initialize(uint32_t channel) pwm = cxd56_pwminitialize(channel); if (!pwm) { - pwmerr("Failed to get the CXD56 PWM%d lower half\n", channel); + pwmerr("Failed to get the CXD56 PWM%ld lower half\n", channel); return -ENODEV; } /* Register the PWM driver at "/dev/pwmX" */ - snprintf(devname, sizeof(devname), "/dev/pwm%d", channel); + snprintf(devname, sizeof(devname), "/dev/pwm%ld", channel); ret = pwm_register(devname, pwm); if (ret < 0) {