Cleanup output format warnings (#904)
Use `PRIxxx` related macros to format the output strings so as to clear compile warnings, e.g. PRIu32, PRId32, PRIX32, PRIX64 and so on. And add the related macro definitions in platform_common.h if they are not defined, as some compilers might not support them.
This commit is contained in:
@ -357,7 +357,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
|
||||
if (error_buf != NULL)
|
||||
snprintf(error_buf, error_buf_size,
|
||||
"Load relocation section failed: "
|
||||
"invalid relocation type %d.",
|
||||
"invalid relocation type %" PRIu32 ".",
|
||||
reloc_type);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user