]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/oom_kill: remove unnecessary integer promotion in format string
authorDipendra Khadka <kdipendra88@gmail.com>
Sun, 28 Dec 2025 15:44:55 +0000 (15:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:54 +0000 (19:24 -0800)
commit29ec27805f55122252c3973e4edae82676cc737d
tree5f496e6f460dcb80d77d00d9944fefdac5539161
parent860996495f989fd86b7f1525d7500a6e15986a24
mm/oom_kill: remove unnecessary integer promotion in format string

The 'h' length modifier in '%hd' is unnecessary as short integers are
promoted to int in variadic functions.  Use '%d' instead.

Checkpatch flags the 'h' modifier as unnecessary for this reason, and
many other subsystems have moved to using %d for promoted types.
Hence, I think this patch aligns with kernel coding practices.

Link: https://lkml.kernel.org/r/20251228154456.2386-1-kdipendra88@gmail.com
Signed-off-by: Dipendra Khadka <kdipendra88@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/oom_kill.c