printk: Use the BITS_PER_LONG macro
sizeof(unsigned long) * 8 is the number of bits in an unsigned long variable, replace it with BITS_PER_LONG macro to make it simpler. Signed-off-by:Jinjie Ruan <ruanjinjie@huawei.com> Reviewed-by:
John Ogness <john.ogness@linutronix.de> Reviewed-by:
Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20240903035358.308482-1-ruanjinjie@huawei.comSigned-off-by:
Petr Mladek <pmladek@suse.com>
Showing
Please register or sign in to comment