]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq: Consistently use '%u' format specifier for unsigned int variables
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 9 May 2025 15:46:42 +0000 (18:46 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 13 May 2025 07:43:32 +0000 (09:43 +0200)
commit47af06c9d31fe558493de4e04f9a07847dc4992f
treea323533b9b4b1d4f8fc441f1af2e787fba58fdd9
parentb5fcb6898202858ae8425bf0cd9cb5704735bd02
genirq: Consistently use '%u' format specifier for unsigned int variables

There are three cases in the genirq code when the irq, as an unsigned
integer variable, is converted to text representation by sprintf().
In two cases it uses '%d' specifier which is for signed values. While
it's not a problem right now, potentially it might be in the future
in case too big (> INT_MAX) number will appear there.

Consistently use '%u' format specifier for @irq which is declared as
unsigned int in all these cases.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250509154643.1499171-1-andriy.shevchenko@linux.intel.com
kernel/irq/debugfs.c
kernel/irq/proc.c