From 28d71b79a2fcbc8e98a1aaa83dd10d0215d0a80b Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 3 Feb 2023 01:53:38 +0800 Subject: [PATCH] Fix sensortest.c:168:40: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat] Signed-off-by: Xiang Xiao --- testing/sensortest/sensortest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/sensortest/sensortest.c b/testing/sensortest/sensortest.c index 1c8e55137..3fd24d027 100644 --- a/testing/sensortest/sensortest.c +++ b/testing/sensortest/sensortest.c @@ -164,8 +164,8 @@ static void print_valf3(const char *buffer, const char *name) static void print_ecg(const char *buffer, const char *name) { struct sensor_ecg *event = (struct sensor_ecg *)buffer; - printf("%s: timestamp:%" PRIu64 " ecg:%.4f status:%lx", name, - event->timestamp, event->ecg, event->status); + printf("%s: timestamp:%" PRIu64 " ecg:%.4f status:%" PRIu32, + name, event->timestamp, event->ecg, event->status); } static void print_ppgd(const char *buffer, const char *name)