Thread (33 messages) flat view 33 messages, 11 authors, 2022-07-11

Re: [PATCH 00/12] Clang -Wformat warning fixes

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2022-06-09 22:25:38
Also in: alsa-devel, linux-acpi, linux-edac, linux-mm, lkml, llvm, netfilter-devel

On Thu,  9 Jun 2022 22:16:19 +0000 Bill Wendling [off-list ref] wrote:
This patch set fixes some clang warnings when -Wformat is enabled.
tldr:

-	printk(msg);
+	printk("%s", msg);

the only reason to make this change is where `msg' could contain a `%'.
Generally, it came from userspace.  Otherwise these changes are a
useless consumer of runtime resources.

I think it would be better to quieten clang in some fashion.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help