Text is formatted with printf or a relative, whose arguments the compiler does not match against the format
What it finds
The printf family trusts the format string about the number and types of the arguments; a mismatch is undefined behaviour. Streams and std::format check the arguments' types.
From the rule's source, printf_style_output.rs.
Turn it on, off or suppress it
The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/cpp:printf-style-output" = "note"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/cpp:printf-style-output] reason="..."tx0 explain tx0/cpp:printf-style-output shows the same in the terminal. Found a false positive? Report it.