mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
hpet: Use str_plural() to simplify the code
Use the string choice helper function str_plural() to simplify the code. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Link: https://lore.kernel.org/r/20250811122358.542190-1-zhao.xichao@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0e805e8b00
commit
c585a4ad32
@ -867,7 +867,7 @@ int hpet_alloc(struct hpet_data *hdp)
|
||||
|
||||
printk(KERN_INFO "hpet%u: at MMIO 0x%lx, IRQ%s",
|
||||
hpetp->hp_which, hdp->hd_phys_address,
|
||||
hpetp->hp_ntimer > 1 ? "s" : "");
|
||||
str_plural(hpetp->hp_ntimer));
|
||||
for (i = 0; i < hpetp->hp_ntimer; i++)
|
||||
printk(KERN_CONT "%s %u", i > 0 ? "," : "", hdp->hd_irq[i]);
|
||||
printk(KERN_CONT "\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user