Skip to content

Commit

Permalink
Fix formatting issues in executorch/test/size_test.cpp (#3065)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
r-barnes authored and facebook-github-bot committed Apr 16, 2024
1 parent ab62707 commit 9931301
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/size_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ int main(int argc, char** argv) {

Result<FileDataLoader> 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<uint32_t>(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<uint32_t>(program.error()));
ET_LOG(Info, "Program file %s loaded.", argv[1]);

// Use the first method in the program.
Expand Down

0 comments on commit 9931301

Please sign in to comment.