sensors/wtgahrs2: Fix syslog format warning
sensors/wtgahrs2.c: In function 'wtgahrs2_gps_data': Error: sensors/wtgahrs2.c:332:14: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=] 332 | sninfo("Time : %llu utc_time: %llu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 333 | rtdata->gps.timestamp, rtdata->gps.time_utc); | ~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} sensors/wtgahrs2.c:332:25: note: format string is defined here 332 | sninfo("Time : %llu utc_time: %llu\n", | ~~~^ | | | long long unsigned int | %lu In file included from sensors/wtgahrs2.c:37: Error: sensors/wtgahrs2.c:332:14: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=] 332 | sninfo("Time : %llu utc_time: %llu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 333 | rtdata->gps.timestamp, rtdata->gps.time_utc); | ~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} sensors/wtgahrs2.c:332:40: note: format string is defined here 332 | sninfo("Time : %llu utc_time: %llu\n", | ~~~^ | | | long long unsigned int | %lu Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
b5d1ec28de
commit
8e42f368ee
@ -329,7 +329,7 @@ static void wtgahrs2_gps_data(FAR struct wtgahrs2_dev_s *rtdata,
|
||||
{
|
||||
rtdata->gps_mask = 0;
|
||||
lower->push_event(lower->priv, &rtdata->gps, sizeof(rtdata->gps));
|
||||
sninfo("Time : %llu utc_time: %llu\n",
|
||||
sninfo("Time : %" PRIu64 " utc_time: %" PRIu64 "\n",
|
||||
rtdata->gps.timestamp, rtdata->gps.time_utc);
|
||||
sninfo("GPS longitude : %fdegree, latitude:%fdegree\n",
|
||||
rtdata->gps.longitude, rtdata->gps.latitude);
|
||||
|
Loading…
Reference in New Issue
Block a user