Resolve printing uint64 types

Using %llu or %lu will break one of the build targets. The "right way"
to print a uint64_t is via the PRIU64 macro defined in C99.

This wasn't defined for the NuttX compiler so it was added to px4_defines.h
for NuttX.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-05-19 11:04:39 -07:00
parent e2d175b3e5
commit ce96329f95
2 changed files with 9 additions and 5 deletions
+4
View File
@@ -105,6 +105,10 @@ typedef param_t px4_param_t;
#define PX4_ISFINITE(x) isfinite(x)
#ifndef PRIu64
#define PRIu64 "llu"
#endif
/*
* POSIX Specific defines
*/