[PATCH] D114469: [XRay] fix more -Wformat warnings
Dimitry Andric via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 3 11:47:34 PST 2021
dim added inline comments.
================
Comment at: compiler-rt/lib/xray/xray_interface.cpp:172
default:
- Report("Unsupported sled kind '%d' @%04x\n", Sled.Address, int(Sled.Kind));
+ Report("Unsupported sled kind '%" PRIu64 "' @%04x\n", Sled.Address,
+ int(Sled.Kind));
----------------
vitalybuka wrote:
> %llu
This can only be done by adding a cast, as `Sled.Address` is `uint64_t`. There's a cast here anyway, so maybe another one's OK?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114469/new/
https://reviews.llvm.org/D114469
More information about the llvm-commits
mailing list