From e335d5ee60328ec09aa486bbb6a279b3586a73a9 Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Sun, 16 Nov 2025 17:49:10 -0800 Subject: [PATCH] Xtensa format specifier (#15842) Summary: unsigned int seems to be a more correct format specifier than unsigned long for size_t on toolchains that don't support %zu. Differential Revision: D87159004 --- runtime/platform/compiler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/platform/compiler.h b/runtime/platform/compiler.h index 62324699923..edd340d1fb0 100644 --- a/runtime/platform/compiler.h +++ b/runtime/platform/compiler.h @@ -161,8 +161,8 @@ // As of G3 RJ-2024.3 toolchain, zu format specifier is not supported for Xtensa #if defined(__XTENSA__) -#define ET_PRIsize_t "lu" -#define ET_PRIssize_t "ld" +#define ET_PRIsize_t "u" +#define ET_PRIssize_t "d" #else #define ET_PRIsize_t "zu" #define ET_PRIssize_t "zd"