Fix printf format specifier mismatches#21034
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21034
Note: Links to docs will display an error until the docs builds have been completed.
|
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
This PR needs a
|
Fix sign/size mismatches in ET_LOG/ET_CHECK format strings (PRIu64 for int64_t, %zd for size_t, %ld for int32_t/size_t, %u for signed) and malformed literals like
0x%x" PRIx32that printed a stray character. Found via clang -Wformat=2 build plus a signedness audit; every fix verified against the argument's declared type, and the compiled surface rebuilds warning-free.Authored with Claude.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani