Merge pull request #3020 from mcharleb/build-fixes

Fixed PRI64 to PRId64 in generate_listener.py
This commit is contained in:
Lorenz Meier 2015-10-19 19:06:32 +02:00
commit c18d4dba01
1 changed files with 3 additions and 3 deletions

View File

@ -119,8 +119,8 @@ print("""
#define PRIu64 "llu"
#endif
#ifndef PRI64
#define PRI64 "lld"
#ifndef PRId64
#define PRId64 "lld"
#endif
""")
@ -184,7 +184,7 @@ for index,m in enumerate(messages[1:]):
print("\t\t\t}")
print("\t\t\tprintf(\"\\n\");")
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":
print("\t\t\tprintf(\"%s: %%d\\n\",container.%s);" % (item[1], item[1]))
elif item[0] == "uint32":