Skip to content

Commit

Permalink
xen-netback: xenbus.c: use more current logging styles
Browse files Browse the repository at this point in the history
Convert one printk to pr_<level>.

Add a missing newline in several places to avoid message interleaving,
coalesce formats, reflow modified lines to 80 columns.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Liu authored and davem330 committed Jul 2, 2013
1 parent b48410b commit 8ef2c3b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions drivers/net/xen-netback/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int netback_probe(struct xenbus_device *dev,
"feature-split-event-channels",
"%u", separate_tx_rx_irq);
if (err)
pr_debug("Error writing feature-split-event-channels");
pr_debug("Error writing feature-split-event-channels\n");

err = xenbus_switch_state(dev, XenbusStateInitWait);
if (err)
Expand All @@ -145,7 +145,7 @@ static int netback_probe(struct xenbus_device *dev,
xenbus_transaction_end(xbt, 1);
xenbus_dev_fatal(dev, err, "%s", message);
fail:
pr_debug("failed");
pr_debug("failed\n");
netback_remove(dev);
return err;
}
Expand Down Expand Up @@ -228,15 +228,14 @@ static void frontend_changed(struct xenbus_device *dev,
{
struct backend_info *be = dev_get_drvdata(&dev->dev);

pr_debug("frontend state %s", xenbus_strstate(frontend_state));
pr_debug("frontend state %s\n", xenbus_strstate(frontend_state));

be->frontend_state = frontend_state;

switch (frontend_state) {
case XenbusStateInitialising:
if (dev->state == XenbusStateClosed) {
printk(KERN_INFO "%s: %s: prepare for reconnect\n",
__func__, dev->nodename);
pr_info("%s: prepare for reconnect\n", dev->nodename);
xenbus_switch_state(dev, XenbusStateInitWait);
}
break;
Expand Down

0 comments on commit 8ef2c3b

Please sign in to comment.