]> git.baikalelectronics.ru Git - kernel.git/commit
net: wan/lmc: dont print format string when not available
authorTong Zhang <ztong0001@gmail.com>
Mon, 15 Feb 2021 19:23:07 +0000 (14:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 21:03:22 +0000 (13:03 -0800)
commit71a684ea5742140351ec03c19d721c2899a2ad02
treea93feefd5d98422732ca12dba3344bb62bdc3853
parent91e61806ce1905c3fc72e405d73fad0d228f21f8
net: wan/lmc: dont print format string when not available

dev->name is determined only after calling register_hdlc_device(),
however ,it is used by printk before the name is fully determined.

  [    4.565137] hdlc%d: detected at e8000000, irq 11

Instead of printing out a %d, print hdlc directly

Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/lmc/lmc_main.c