forked from Archive/PX4-Autopilot
Merge pull request #3020 from mcharleb/build-fixes
Fixed PRI64 to PRId64 in generate_listener.py
This commit is contained in:
commit
c18d4dba01
|
@ -119,8 +119,8 @@ print("""
|
||||||
#define PRIu64 "llu"
|
#define PRIu64 "llu"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PRI64
|
#ifndef PRId64
|
||||||
#define PRI64 "lld"
|
#define PRId64 "lld"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
""")
|
""")
|
||||||
|
@ -184,7 +184,7 @@ for index,m in enumerate(messages[1:]):
|
||||||
print("\t\t\t}")
|
print("\t\t\t}")
|
||||||
print("\t\t\tprintf(\"\\n\");")
|
print("\t\t\tprintf(\"\\n\");")
|
||||||
elif item[0] == "int64":
|
elif item[0] == "int64":
|
||||||
print("\t\t\tprintf(\"%s: %%\" PRI64 \"\\n\",container.%s);" % (item[1], item[1]))
|
print("\t\t\tprintf(\"%s: %%\" PRId64 \"\\n\",container.%s);" % (item[1], item[1]))
|
||||||
elif item[0] == "int32":
|
elif item[0] == "int32":
|
||||||
print("\t\t\tprintf(\"%s: %%d\\n\",container.%s);" % (item[1], item[1]))
|
print("\t\t\tprintf(\"%s: %%d\\n\",container.%s);" % (item[1], item[1]))
|
||||||
elif item[0] == "uint32":
|
elif item[0] == "uint32":
|
||||||
|
|
Loading…
Reference in New Issue