You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/02/02 21:46:20 UTC
[nuttx-apps] branch master updated: Fix sensortest.c:168:40: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 28d71b79a Fix sensortest.c:168:40: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
28d71b79a is described below
commit 28d71b79a2fcbc8e98a1aaa83dd10d0215d0a80b
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Feb 3 01:53:38 2023 +0800
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 <xi...@xiaomi.com>
---
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)