mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-09 07:14:48 +08:00
staging: fsl-dpaa2/ethsw: add line terminator to all formats
Add the '\n' line terminator to the string formats missing it. Reported-by: Joe Perches <joe@perches.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/1565700187-16048-4-git-send-email-ioana.ciornei@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f740eb942b
commit
7386632477
@ -65,7 +65,7 @@ ethsw_get_link_ksettings(struct net_device *netdev,
|
||||
port_priv->idx,
|
||||
&state);
|
||||
if (err) {
|
||||
netdev_err(netdev, "ERROR %d getting link state", err);
|
||||
netdev_err(netdev, "ERROR %d getting link state\n", err);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
@ -722,12 +722,12 @@ static irqreturn_t ethsw_irq0_handler_thread(int irq_num, void *arg)
|
||||
err = dpsw_get_irq_status(ethsw->mc_io, 0, ethsw->dpsw_handle,
|
||||
DPSW_IRQ_INDEX_IF, &status);
|
||||
if (err) {
|
||||
dev_err(dev, "Can't get irq status (err %d)", err);
|
||||
dev_err(dev, "Can't get irq status (err %d)\n", err);
|
||||
|
||||
err = dpsw_clear_irq_status(ethsw->mc_io, 0, ethsw->dpsw_handle,
|
||||
DPSW_IRQ_INDEX_IF, 0xFFFFFFFF);
|
||||
if (err)
|
||||
dev_err(dev, "Can't clear irq status (err %d)", err);
|
||||
dev_err(dev, "Can't clear irq status (err %d)\n", err);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -772,21 +772,21 @@ static int ethsw_setup_irqs(struct fsl_mc_device *sw_dev)
|
||||
IRQF_NO_SUSPEND | IRQF_ONESHOT,
|
||||
dev_name(dev), dev);
|
||||
if (err) {
|
||||
dev_err(dev, "devm_request_threaded_irq(): %d", err);
|
||||
dev_err(dev, "devm_request_threaded_irq(): %d\n", err);
|
||||
goto free_irq;
|
||||
}
|
||||
|
||||
err = dpsw_set_irq_mask(ethsw->mc_io, 0, ethsw->dpsw_handle,
|
||||
DPSW_IRQ_INDEX_IF, mask);
|
||||
if (err) {
|
||||
dev_err(dev, "dpsw_set_irq_mask(): %d", err);
|
||||
dev_err(dev, "dpsw_set_irq_mask(): %d\n", err);
|
||||
goto free_devm_irq;
|
||||
}
|
||||
|
||||
err = dpsw_set_irq_enable(ethsw->mc_io, 0, ethsw->dpsw_handle,
|
||||
DPSW_IRQ_INDEX_IF, 1);
|
||||
if (err) {
|
||||
dev_err(dev, "dpsw_set_irq_enable(): %d", err);
|
||||
dev_err(dev, "dpsw_set_irq_enable(): %d\n", err);
|
||||
goto free_devm_irq;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user