arcnet: Convert BUGMSG and BUGMSG2 to arc_prink and arc_cont
These macros don't actually represent BUG uses but are more commonly used as logging macros, so use a more kernel style macro. Convert the BUGMSG from a netdev_ like use to actually use netdev_<level>. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
This commit is contained in:

committed by
Michael Grzeschik

parent
72aeea4841
commit
a34c0932c3
@@ -124,7 +124,7 @@ static void rx(struct net_device *dev, int bufnum,
|
||||
struct archdr *pkt = pkthdr;
|
||||
int ofs;
|
||||
|
||||
BUGMSG(D_DURING, "it's a raw packet (length=%d)\n", length);
|
||||
arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length);
|
||||
|
||||
if (length >= MinTU)
|
||||
ofs = 512 - length;
|
||||
@@ -133,7 +133,7 @@ static void rx(struct net_device *dev, int bufnum,
|
||||
|
||||
skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
|
||||
if (skb == NULL) {
|
||||
BUGMSG(D_NORMAL, "Memory squeeze, dropping packet.\n");
|
||||
arc_printk(D_NORMAL, dev, "Memory squeeze, dropping packet\n");
|
||||
dev->stats.rx_dropped++;
|
||||
return;
|
||||
}
|
||||
@@ -173,8 +173,8 @@ static int build_header(struct sk_buff *skb, struct net_device *dev,
|
||||
soft->proto = ARC_P_ARP_RFC1051;
|
||||
break;
|
||||
default:
|
||||
BUGMSG(D_NORMAL, "RFC1051: I don't understand protocol %d (%Xh)\n",
|
||||
type, type);
|
||||
arc_printk(D_NORMAL, dev, "RFC1051: I don't understand protocol %d (%Xh)\n",
|
||||
type, type);
|
||||
dev->stats.tx_errors++;
|
||||
dev->stats.tx_aborted_errors++;
|
||||
return 0;
|
||||
@@ -210,15 +210,15 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
|
||||
struct arc_hardware *hard = &pkt->hard;
|
||||
int ofs;
|
||||
|
||||
BUGMSG(D_DURING, "prepare_tx: txbufs=%d/%d/%d\n",
|
||||
lp->next_tx, lp->cur_tx, bufnum);
|
||||
arc_printk(D_DURING, dev, "prepare_tx: txbufs=%d/%d/%d\n",
|
||||
lp->next_tx, lp->cur_tx, bufnum);
|
||||
|
||||
length -= ARC_HDR_SIZE; /* hard header is not included in packet length */
|
||||
|
||||
if (length > XMTU) {
|
||||
/* should never happen! other people already check for this. */
|
||||
BUGMSG(D_NORMAL, "Bug! prepare_tx with size %d (> %d)\n",
|
||||
length, XMTU);
|
||||
arc_printk(D_NORMAL, dev, "Bug! prepare_tx with size %d (> %d)\n",
|
||||
length, XMTU);
|
||||
length = XMTU;
|
||||
}
|
||||
if (length > MinTU) {
|
||||
|
Reference in New Issue
Block a user