patch-2.3.99-pre7 linux/drivers/net/hamradio/hdlcdrv.c
Next file: linux/drivers/net/hamradio/mkiss.c
Previous file: linux/drivers/net/hamradio/dmascc.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Thu May 4 11:31:21 2000
- Orig file:
v2.3.99-pre6/linux/drivers/net/hamradio/hdlcdrv.c
- Orig date:
Tue Mar 14 19:10:39 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/hamradio/hdlcdrv.c linux/drivers/net/hamradio/hdlcdrv.c
@@ -217,8 +217,7 @@
return;
pkt_len = s->hdlcrx.len - 2 + 1; /* KISS kludge */
if (!(skb = dev_alloc_skb(pkt_len))) {
- printk("%s: memory squeeze, dropping packet\n",
- s->ifname);
+ printk("%s: memory squeeze, dropping packet\n", dev->name);
s->stats.rx_dropped++;
return;
}
@@ -293,7 +292,7 @@
{
#ifdef KISS_VERBOSE
-#define PKP(a,b) printk(KERN_INFO "%s: channel params: " a "\n", s->ifname, b)
+#define PKP(a,b) printk(KERN_INFO "hdlcdrv.c: channel params: " a "\n", b)
#else /* KISS_VERBOSE */
#define PKP(a,b)
#endif /* KISS_VERBOSE */
@@ -840,12 +839,11 @@
*/
memset(s, 0, privsize);
s->magic = HDLCDRV_MAGIC;
- strncpy(s->ifname, ifname, sizeof(s->ifname));
+ strncpy(dev->name, ifname, sizeof(dev->name));
s->ops = ops;
/*
* initialize part of the device struct
*/
- dev->name = s->ifname;
dev->if_port = 0;
dev->init = hdlcdrv_probe;
dev->base_addr = baseaddr;
@@ -853,7 +851,7 @@
dev->dma = dma;
if (register_netdev(dev)) {
printk(KERN_WARNING "hdlcdrv: cannot register net "
- "device %s\n", s->ifname);
+ "device %s\n", dev->name);
kfree(dev->priv);
return -ENXIO;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)