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:
parent
fea1b197d4
commit
28d71b79a2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user