You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/16 08:38:34 UTC
[incubator-nuttx-apps] branch master updated:
testing/sensortest/sensortest.c: Fix a printf format warning
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new c1b11a1 testing/sensortest/sensortest.c: Fix a printf format warning
c1b11a1 is described below
commit c1b11a1e35bb537fbacb287108f2ff1ee575c1d3
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon Nov 16 17:34:28 2020 +0900
testing/sensortest/sensortest.c: Fix a printf format warning
---
testing/sensortest/sensortest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testing/sensortest/sensortest.c b/testing/sensortest/sensortest.c
index d895a22..cca82a6 100644
--- a/testing/sensortest/sensortest.c
+++ b/testing/sensortest/sensortest.c
@@ -126,7 +126,7 @@ static void print_valf(const char *buffer, const char *name)
static void print_valf2(const char *buffer, const char *name)
{
struct sensor_event_baro *event = (struct sensor_event_baro *)buffer;
- printf("%s: timestamp:%llu value1:%.2f value2:%.2f\n",
+ printf("%s: timestamp:%" PRIu64 " value1:%.2f value2:%.2f\n",
name, event->timestamp, event->pressure, event->temperature);
}