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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-02-03 01:53:38 +08:00 committed by Alan Carvalho de Assis
parent fea1b197d4
commit 28d71b79a2

View File

@ -164,8 +164,8 @@ static void print_valf3(const char *buffer, const char *name)
static void print_ecg(const char *buffer, const char *name) static void print_ecg(const char *buffer, const char *name)
{ {
struct sensor_ecg *event = (struct sensor_ecg *)buffer; struct sensor_ecg *event = (struct sensor_ecg *)buffer;
printf("%s: timestamp:%" PRIu64 " ecg:%.4f status:%lx", name, printf("%s: timestamp:%" PRIu64 " ecg:%.4f status:%" PRIu32,
event->timestamp, event->ecg, event->status); name, event->timestamp, event->ecg, event->status);
} }
static void print_ppgd(const char *buffer, const char *name) static void print_ppgd(const char *buffer, const char *name)