提交 2a837ccd 编写于 作者: Y YAMANE Toshiaki 提交者: Greg Kroah-Hartman

staging/sbe-2t3e3: Use netdev_ printks in main.c

fixed below checkpatch warning.
- WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...
Signed-off-by: NYAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ad2d2559
...@@ -135,8 +135,9 @@ void t3e3_read_card_serial_number(struct channel *sc) ...@@ -135,8 +135,9 @@ void t3e3_read_card_serial_number(struct channel *sc)
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
sc->ether.card_serial_number[i] = t3e3_eeprom_read_word(sc, 10 + i); sc->ether.card_serial_number[i] = t3e3_eeprom_read_word(sc, 10 + i);
printk(KERN_INFO "SBE wanPMC-2T3E3 serial number: %04X%04X%04X\n", netdev_info(sc->dev, "SBE wanPMC-2T3E3 serial number: %04X%04X%04X\n",
sc->ether.card_serial_number[0], sc->ether.card_serial_number[1], sc->ether.card_serial_number[0],
sc->ether.card_serial_number[1],
sc->ether.card_serial_number[2]); sc->ether.card_serial_number[2]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册