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>
1.support for multi-user access
2.support special cmd to control sensor
3.support userspace to set size of intermediate buffer
by ioctl: SNOIC_SET_BUFFER_SIZE
Change-Id: I9ce3a65b88b12c28388ec397431f1a277b120c2a
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>