Skip to content

Commit 9931301

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix formatting issues in executorch/test/size_test.cpp (#3065)
Summary: Pull Request resolved: #3065 Required for LLVM-17. Fixes a mismatch between what the format string expects and the type supplied. Reviewed By: tarun292 Differential Revision: D56206887 fbshipit-source-id: f52883cb43840b34b5d5b25711f73bc71979da30
1 parent ab62707 commit 9931301

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/size_test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ int main(int argc, char** argv) {
3737

3838
Result<FileDataLoader> loader = FileDataLoader::from(argv[1]);
3939
ET_CHECK_MSG(
40-
loader.ok(), "FileDataLoader::from() failed: 0x%" PRIx32, loader.error());
40+
loader.ok(),
41+
"FileDataLoader::from() failed: 0x%" PRIx32,
42+
static_cast<uint32_t>(loader.error()));
4143

4244
uint32_t prof_tok = EXECUTORCH_BEGIN_PROF("de-serialize model");
4345
const auto program = Program::load(&loader.get());
4446
EXECUTORCH_END_PROF(prof_tok);
4547
ET_CHECK_MSG(
46-
program.ok(), "Program::load() failed: 0x%" PRIx32, program.error());
48+
program.ok(),
49+
"Program::load() failed: 0x%" PRIx32,
50+
static_cast<uint32_t>(program.error()));
4751
ET_LOG(Info, "Program file %s loaded.", argv[1]);
4852

4953
// Use the first method in the program.

0 commit comments

Comments
 (0)