Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255949
b: refs/heads/master
c: c75bb2c
h: refs/heads/master
i:
  255947: ab7fded
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Jun 27, 2011
1 parent 9c4a664 commit d918445
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8c122f450d0b83d7a15535ba49e55ad21a9e63f
refs/heads/master: c75bb2c6f0cf455c23e60f14d780e841dd47f801
28 changes: 13 additions & 15 deletions trunk/drivers/net/wan/ixp4xx_hss.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* as published by the Free Software Foundation.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/bitops.h>
#include <linux/cdev.h>
#include <linux/dma-mapping.h>
Expand Down Expand Up @@ -358,9 +360,8 @@ static void hss_npe_send(struct port *port, struct msg *msg, const char* what)
{
u32 *val = (u32*)msg;
if (npe_send_message(port->npe, msg, what)) {
printk(KERN_CRIT "HSS-%i: unable to send command [%08X:%08X]"
" to %s\n", port->id, val[0], val[1],
npe_name(port->npe));
pr_crit("HSS-%i: unable to send command [%08X:%08X] to %s\n",
port->id, val[0], val[1], npe_name(port->npe));
BUG();
}
}
Expand Down Expand Up @@ -447,8 +448,7 @@ static void hss_config(struct port *port)
if (npe_recv_message(port->npe, &msg, "HSS_LOAD_CONFIG") ||
/* HSS_LOAD_CONFIG for port #1 returns port_id = #4 */
msg.cmd != PORT_CONFIG_LOAD || msg.data32) {
printk(KERN_CRIT "HSS-%i: HSS_LOAD_CONFIG failed\n",
port->id);
pr_crit("HSS-%i: HSS_LOAD_CONFIG failed\n", port->id);
BUG();
}

Expand Down Expand Up @@ -477,8 +477,7 @@ static u32 hss_get_status(struct port *port)
msg.hss_port = port->id;
hss_npe_send(port, &msg, "PORT_ERROR_READ");
if (npe_recv_message(port->npe, &msg, "PORT_ERROR_READ")) {
printk(KERN_CRIT "HSS-%i: unable to read HSS status\n",
port->id);
pr_crit("HSS-%i: unable to read HSS status\n", port->id);
BUG();
}

Expand Down Expand Up @@ -736,9 +735,8 @@ static int hss_hdlc_poll(struct napi_struct *napi, int budget)
dev->stats.rx_errors++;
break;
default: /* FIXME - remove printk */
printk(KERN_ERR "%s: hss_hdlc_poll: status 0x%02X"
" errors %u\n", dev->name, desc->status,
desc->error_count);
netdev_err(dev, "hss_hdlc_poll: status 0x%02X errors %u\n",
desc->status, desc->error_count);
dev->stats.rx_errors++;
}

Expand Down Expand Up @@ -1127,8 +1125,8 @@ static int hss_hdlc_close(struct net_device *dev)
buffs--;

if (buffs)
printk(KERN_CRIT "%s: unable to drain RX queue, %i buffer(s)"
" left in NPE\n", dev->name, buffs);
netdev_crit(dev, "unable to drain RX queue, %i buffer(s) left in NPE\n",
buffs);

buffs = TX_DESCS;
while (queue_get_desc(queue_ids[port->id].tx, port, 1) >= 0)
Expand All @@ -1143,8 +1141,8 @@ static int hss_hdlc_close(struct net_device *dev)
} while (++i < MAX_CLOSE_WAIT);

if (buffs)
printk(KERN_CRIT "%s: unable to drain TX queue, %i buffer(s) "
"left in NPE\n", dev->name, buffs);
netdev_crit(dev, "unable to drain TX queue, %i buffer(s) left in NPE\n",
buffs);
#if DEBUG_CLOSE
if (!buffs)
printk(KERN_DEBUG "Draining TX queues took %i cycles\n", i);
Expand Down Expand Up @@ -1364,7 +1362,7 @@ static int __devinit hss_init_one(struct platform_device *pdev)

platform_set_drvdata(pdev, port);

printk(KERN_INFO "%s: HSS-%i\n", dev->name, port->id);
netdev_info(dev, "HSS-%i\n", port->id);
return 0;

err_free_netdev:
Expand Down

0 comments on commit d918445

Please sign in to comment.