From a6602594be0eff215d785e294d9a2b4c7b8773e5 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Tue, 16 Apr 2024 13:13:48 -0700 Subject: [PATCH] Fix formatting issues in executorch/test/size_test.cpp Summary: Required for LLVM-17. Fixes a mismatch between what the format string expects and the type supplied. Differential Revision: D56206887 --- test/size_test.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/size_test.cpp b/test/size_test.cpp index cb186a7ff7d..88b605c3bf2 100644 --- a/test/size_test.cpp +++ b/test/size_test.cpp @@ -37,13 +37,17 @@ int main(int argc, char** argv) { Result loader = FileDataLoader::from(argv[1]); ET_CHECK_MSG( - loader.ok(), "FileDataLoader::from() failed: 0x%" PRIx32, loader.error()); + loader.ok(), + "FileDataLoader::from() failed: 0x%" PRIx32, + static_cast(loader.error())); uint32_t prof_tok = EXECUTORCH_BEGIN_PROF("de-serialize model"); const auto program = Program::load(&loader.get()); EXECUTORCH_END_PROF(prof_tok); ET_CHECK_MSG( - program.ok(), "Program::load() failed: 0x%" PRIx32, program.error()); + program.ok(), + "Program::load() failed: 0x%" PRIx32, + static_cast(program.error())); ET_LOG(Info, "Program file %s loaded.", argv[1]); // Use the first method in the program.