[PATCH] fs/afs: Remove unnecessary integer promotion in format strings

David Laight david.laight.linux at gmail.com
Fri Jan 2 14:40:06 PST 2026


On Fri,  2 Jan 2026 11:57:40 +0000
Dipendra Khadka <kdipendra88 at gmail.com> wrote:

> Remove 'h' length modifier from printk format strings where integer
> promotion makes it redundant. When short integers are passed to
> variadic functions like pr_notice(), they are automatically promoted
> to int, making the 'h' modifier unnecessary.

Fairly pointless churn for existing code.

The message isn't really right either, 'short integers' are always
promoted to 'int' whenever they are used.
There is nothing special about variadic functions.

	David



More information about the linux-afs mailing list