yf13 commented on code in PR #12475:
URL: https://github.com/apache/nuttx/pull/12475#discussion_r1637416794


##########
arch/risc-v/include/inttypes.h:
##########
@@ -29,7 +29,18 @@
  * Pre-processor Definitions
  ****************************************************************************/
 
-#if defined(CONFIG_ARCH_RV64)
+#if defined(CONFIG_ARCH_RV64ILP32)
+#define _PRI32PREFIX
+#define _PRI64PREFIX "ll"
+#define _PRIPTRPREFIX
+#define _SCN32PREFIX
+#define _SCN64PREFIX "ll"
+#define _SCNPTRPREFIX
+#define INT32_C(x)  x
+#define INT64_C(x)  x ## l

Review Comment:
   thanks



##########
libs/libc/machine/risc-v/arch_elf.c:
##########
@@ -764,8 +764,8 @@ int up_relocateadd(const Elf_Rela *rel, const Elf_Sym *sym,
         }
         break;
       default:
-        berr("ERROR: Unsupported relocation: %ld\n",
-             ELF_R_TYPE(rel->r_info));
+        berr("ERROR: Unsupported relocation: %" PRId32 "\n",

Review Comment:
   thanks, will update later.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to