提交 156f1ed6 编写于 作者: H Harvey Harrison 提交者: Linus Torvalds

isdn: replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dd58c0dd
...@@ -1388,12 +1388,12 @@ static void capidrv_recv_message(struct capi20_appl *ap, struct sk_buff *skb) ...@@ -1388,12 +1388,12 @@ static void capidrv_recv_message(struct capi20_appl *ap, struct sk_buff *skb)
_cdebbuf *cdb = capi_cmsg2str(&s_cmsg); _cdebbuf *cdb = capi_cmsg2str(&s_cmsg);
if (cdb) { if (cdb) {
printk(KERN_DEBUG "%s: applid=%d %s\n", __FUNCTION__, printk(KERN_DEBUG "%s: applid=%d %s\n", __func__,
ap->applid, cdb->buf); ap->applid, cdb->buf);
cdebbuf_free(cdb); cdebbuf_free(cdb);
} else } else
printk(KERN_DEBUG "%s: applid=%d %s not traced\n", printk(KERN_DEBUG "%s: applid=%d %s not traced\n",
__FUNCTION__, ap->applid, __func__, ap->applid,
capi_cmd2str(s_cmsg.Command, s_cmsg.Subcommand)); capi_cmd2str(s_cmsg.Command, s_cmsg.Subcommand));
} }
if (s_cmsg.Command == CAPI_DATA_B3 if (s_cmsg.Command == CAPI_DATA_B3
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <linux/isdn/capilli.h> #include <linux/isdn/capilli.h>
#define DBG(format, arg...) do { \ #define DBG(format, arg...) do { \
printk(KERN_DEBUG "%s: " format "\n" , __FUNCTION__ , ## arg); \ printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
} while (0) } while (0)
struct capilib_msgidqueue { struct capilib_msgidqueue {
......
...@@ -154,7 +154,7 @@ static void register_appl(struct capi_ctr *card, u16 applid, capi_register_param ...@@ -154,7 +154,7 @@ static void register_appl(struct capi_ctr *card, u16 applid, capi_register_param
if (card) if (card)
card->register_appl(card, applid, rparam); card->register_appl(card, applid, rparam);
else else
printk(KERN_WARNING "%s: cannot get card resources\n", __FUNCTION__); printk(KERN_WARNING "%s: cannot get card resources\n", __func__);
} }
...@@ -178,7 +178,7 @@ static void notify_up(u32 contr) ...@@ -178,7 +178,7 @@ static void notify_up(u32 contr)
printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr); printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr);
} }
if (!card) { if (!card) {
printk(KERN_WARNING "%s: invalid contr %d\n", __FUNCTION__, contr); printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr);
return; return;
} }
for (applid = 1; applid <= CAPI_MAXAPPL; applid++) { for (applid = 1; applid <= CAPI_MAXAPPL; applid++) {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#ifdef KCAPI_DEBUG #ifdef KCAPI_DEBUG
#define DBG(format, arg...) do { \ #define DBG(format, arg...) do { \
printk(KERN_DEBUG "%s: " format "\n" , __FUNCTION__ , ## arg); \ printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
} while (0) } while (0)
#else #else
#define DBG(format, arg...) /* */ #define DBG(format, arg...) /* */
......
...@@ -344,7 +344,7 @@ setup_asuscom(struct IsdnCard *card) ...@@ -344,7 +344,7 @@ setup_asuscom(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -797,7 +797,7 @@ static int __devinit avm_pnp_setup(struct IsdnCardState *cs) ...@@ -797,7 +797,7 @@ static int __devinit avm_pnp_setup(struct IsdnCardState *cs)
err = pnp_activate_dev(pnp_avm_d); err = pnp_activate_dev(pnp_avm_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
cs->hw.avm.cfg_reg = cs->hw.avm.cfg_reg =
......
...@@ -1088,7 +1088,7 @@ static int __devinit setup_diva_isapnp(struct IsdnCard *card) ...@@ -1088,7 +1088,7 @@ static int __devinit setup_diva_isapnp(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -937,7 +937,7 @@ setup_elsa_isapnp(struct IsdnCard *card) ...@@ -937,7 +937,7 @@ setup_elsa_isapnp(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -1417,7 +1417,7 @@ setup_hfcsx(struct IsdnCard *card) ...@@ -1417,7 +1417,7 @@ setup_hfcsx(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -905,7 +905,7 @@ rx_int_complete(struct urb *urb) ...@@ -905,7 +905,7 @@ rx_int_complete(struct urb *urb)
if (status) { if (status) {
printk(KERN_INFO printk(KERN_INFO
"HFC-S USB: %s error resubmitting URB fifo(%d)\n", "HFC-S USB: %s error resubmitting URB fifo(%d)\n",
__FUNCTION__, fifon); __func__, fifon);
} }
} }
...@@ -1543,14 +1543,14 @@ hfc_usb_disconnect(struct usb_interface *intf) ...@@ -1543,14 +1543,14 @@ hfc_usb_disconnect(struct usb_interface *intf)
stop_isoc_chain(&context->fifos[i]); stop_isoc_chain(&context->fifos[i]);
DBG(HFCUSB_DBG_INIT, DBG(HFCUSB_DBG_INIT,
"HFC-S USB: %s stopping ISOC chain Fifo(%i)", "HFC-S USB: %s stopping ISOC chain Fifo(%i)",
__FUNCTION__, i); __func__, i);
} }
} else { } else {
if (context->fifos[i].active > 0) { if (context->fifos[i].active > 0) {
context->fifos[i].active = 0; context->fifos[i].active = 0;
DBG(HFCUSB_DBG_INIT, DBG(HFCUSB_DBG_INIT,
"HFC-S USB: %s unlinking URB for Fifo(%i)", "HFC-S USB: %s unlinking URB for Fifo(%i)",
__FUNCTION__, i); __func__, i);
} }
usb_kill_urb(context->fifos[i].urb); usb_kill_urb(context->fifos[i].urb);
usb_free_urb(context->fifos[i].urb); usb_free_urb(context->fifos[i].urb);
......
...@@ -193,7 +193,7 @@ setup_hfcs(struct IsdnCard *card) ...@@ -193,7 +193,7 @@ setup_hfcs(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -27,14 +27,14 @@ ...@@ -27,14 +27,14 @@
#define DBG(level, format, arg...) do { \ #define DBG(level, format, arg...) do { \
if (level & __debug_variable) \ if (level & __debug_variable) \
printk(KERN_DEBUG "%s: " format "\n" , __FUNCTION__ , ## arg); \ printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
} while (0) } while (0)
#define DBG_PACKET(level,data,count) \ #define DBG_PACKET(level,data,count) \
if (level & __debug_variable) dump_packet(__FUNCTION__,data,count) if (level & __debug_variable) dump_packet(__func__,data,count)
#define DBG_SKB(level,skb) \ #define DBG_SKB(level,skb) \
if ((level & __debug_variable) && skb) dump_packet(__FUNCTION__,skb->data,skb->len) if ((level & __debug_variable) && skb) dump_packet(__func__,skb->data,skb->len)
static void __attribute__((unused)) static void __attribute__((unused))
......
...@@ -935,7 +935,7 @@ static int __devinit fcpnp_probe(struct pnp_dev *pdev, const struct pnp_device_i ...@@ -935,7 +935,7 @@ static int __devinit fcpnp_probe(struct pnp_dev *pdev, const struct pnp_device_i
pnp_disable_dev(pdev); pnp_disable_dev(pdev);
retval = pnp_activate_dev(pdev); retval = pnp_activate_dev(pdev);
if (retval < 0) { if (retval < 0) {
printk(KERN_WARNING "%s: pnp_activate_dev(%s) ret(%d)\n", __FUNCTION__, printk(KERN_WARNING "%s: pnp_activate_dev(%s) ret(%d)\n", __func__,
(char *)dev_id->driver_data, retval); (char *)dev_id->driver_data, retval);
goto err_free; goto err_free;
} }
......
...@@ -252,7 +252,7 @@ setup_ix1micro(struct IsdnCard *card) ...@@ -252,7 +252,7 @@ setup_ix1micro(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -255,7 +255,7 @@ int __devinit setup_niccy(struct IsdnCard *card) ...@@ -255,7 +255,7 @@ int __devinit setup_niccy(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err < 0) { if (err < 0) {
printk(KERN_WARNING "%s: pnp_activate_dev " printk(KERN_WARNING "%s: pnp_activate_dev "
"ret(%d)\n", __FUNCTION__, err); "ret(%d)\n", __func__, err);
return 0; return 0;
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -555,7 +555,7 @@ setup_sedlbauer_isapnp(struct IsdnCard *card, int *bytecnt) ...@@ -555,7 +555,7 @@ setup_sedlbauer_isapnp(struct IsdnCard *card, int *bytecnt)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[1] = pnp_port_start(pnp_d, 0); card->para[1] = pnp_port_start(pnp_d, 0);
......
...@@ -218,13 +218,13 @@ enum { ...@@ -218,13 +218,13 @@ enum {
#define L1_EVENT_COUNT (EV_TIMER3 + 1) #define L1_EVENT_COUNT (EV_TIMER3 + 1)
#define ERR(format, arg...) \ #define ERR(format, arg...) \
printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __FUNCTION__ , ## arg) printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
#define WARN(format, arg...) \ #define WARN(format, arg...) \
printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __FUNCTION__ , ## arg) printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
#define INFO(format, arg...) \ #define INFO(format, arg...) \
printk(KERN_INFO "%s:%s: " format "\n" , __FILE__, __FUNCTION__ , ## arg) printk(KERN_INFO "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
#include "isdnhdlc.h" #include "isdnhdlc.h"
#include "fsm.h" #include "fsm.h"
...@@ -406,7 +406,7 @@ struct st5481_adapter { ...@@ -406,7 +406,7 @@ struct st5481_adapter {
/* /*
* Submit an URB with error reporting. This is a macro so * Submit an URB with error reporting. This is a macro so
* the __FUNCTION__ returns the caller function name. * the __func__ returns the caller function name.
*/ */
#define SUBMIT_URB(urb, mem_flags) \ #define SUBMIT_URB(urb, mem_flags) \
({ \ ({ \
...@@ -470,7 +470,7 @@ extern int st5481_debug; ...@@ -470,7 +470,7 @@ extern int st5481_debug;
#ifdef CONFIG_HISAX_DEBUG #ifdef CONFIG_HISAX_DEBUG
#define DBG_ISO_PACKET(level,urb) \ #define DBG_ISO_PACKET(level,urb) \
if (level & __debug_variable) dump_iso_packet(__FUNCTION__,urb) if (level & __debug_variable) dump_iso_packet(__func__,urb)
static void __attribute__((unused)) static void __attribute__((unused))
dump_iso_packet(const char *name, struct urb *urb) dump_iso_packet(const char *name, struct urb *urb)
......
...@@ -301,7 +301,7 @@ setup_teles3(struct IsdnCard *card) ...@@ -301,7 +301,7 @@ setup_teles3(struct IsdnCard *card)
err = pnp_activate_dev(pnp_d); err = pnp_activate_dev(pnp_d);
if (err<0) { if (err<0) {
printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
__FUNCTION__, err); __func__, err);
return(0); return(0);
} }
card->para[3] = pnp_port_start(pnp_d, 2); card->para[3] = pnp_port_start(pnp_d, 2);
......
...@@ -1924,7 +1924,7 @@ isdn_free_channel(int di, int ch, int usage) ...@@ -1924,7 +1924,7 @@ isdn_free_channel(int di, int ch, int usage)
if ((di < 0) || (ch < 0)) { if ((di < 0) || (ch < 0)) {
printk(KERN_WARNING "%s: called with invalid drv(%d) or channel(%d)\n", printk(KERN_WARNING "%s: called with invalid drv(%d) or channel(%d)\n",
__FUNCTION__, di, ch); __func__, di, ch);
return; return;
} }
for (i = 0; i < ISDN_MAX_CHANNELS; i++) for (i = 0; i < ISDN_MAX_CHANNELS; i++)
......
...@@ -108,7 +108,7 @@ static __inline__ void isdn_net_add_to_bundle(isdn_net_dev *nd, isdn_net_local * ...@@ -108,7 +108,7 @@ static __inline__ void isdn_net_add_to_bundle(isdn_net_dev *nd, isdn_net_local *
lp = nd->queue; lp = nd->queue;
// printk(KERN_DEBUG "%s: lp:%s(%p) nlp:%s(%p) last(%p)\n", // printk(KERN_DEBUG "%s: lp:%s(%p) nlp:%s(%p) last(%p)\n",
// __FUNCTION__, lp->name, lp, nlp->name, nlp, lp->last); // __func__, lp->name, lp, nlp->name, nlp, lp->last);
nlp->last = lp->last; nlp->last = lp->last;
lp->last->next = nlp; lp->last->next = nlp;
lp->last = nlp; lp->last = nlp;
...@@ -129,7 +129,7 @@ static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp) ...@@ -129,7 +129,7 @@ static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp)
master_lp = (isdn_net_local *) lp->master->priv; master_lp = (isdn_net_local *) lp->master->priv;
// printk(KERN_DEBUG "%s: lp:%s(%p) mlp:%s(%p) last(%p) next(%p) mndq(%p)\n", // printk(KERN_DEBUG "%s: lp:%s(%p) mlp:%s(%p) last(%p) next(%p) mndq(%p)\n",
// __FUNCTION__, lp->name, lp, master_lp->name, master_lp, lp->last, lp->next, master_lp->netdev->queue); // __func__, lp->name, lp, master_lp->name, master_lp, lp->last, lp->next, master_lp->netdev->queue);
spin_lock_irqsave(&master_lp->netdev->queue_lock, flags); spin_lock_irqsave(&master_lp->netdev->queue_lock, flags);
lp->last->next = lp->next; lp->last->next = lp->next;
lp->next->last = lp->last; lp->next->last = lp->last;
...@@ -141,7 +141,7 @@ static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp) ...@@ -141,7 +141,7 @@ static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp)
} }
lp->next = lp->last = lp; /* (re)set own pointers */ lp->next = lp->last = lp; /* (re)set own pointers */
// printk(KERN_DEBUG "%s: mndq(%p)\n", // printk(KERN_DEBUG "%s: mndq(%p)\n",
// __FUNCTION__, master_lp->netdev->queue); // __func__, master_lp->netdev->queue);
spin_unlock_irqrestore(&master_lp->netdev->queue_lock, flags); spin_unlock_irqrestore(&master_lp->netdev->queue_lock, flags);
} }
......
...@@ -110,7 +110,7 @@ isdn_ppp_free(isdn_net_local * lp) ...@@ -110,7 +110,7 @@ isdn_ppp_free(isdn_net_local * lp)
if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: ppp_slot(%d) out of range\n",
__FUNCTION__, lp->ppp_slot); __func__, lp->ppp_slot);
return 0; return 0;
} }
...@@ -127,7 +127,7 @@ isdn_ppp_free(isdn_net_local * lp) ...@@ -127,7 +127,7 @@ isdn_ppp_free(isdn_net_local * lp)
#endif /* CONFIG_ISDN_MPP */ #endif /* CONFIG_ISDN_MPP */
if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: ppp_slot(%d) now invalid\n", printk(KERN_ERR "%s: ppp_slot(%d) now invalid\n",
__FUNCTION__, lp->ppp_slot); __func__, lp->ppp_slot);
return 0; return 0;
} }
is = ippp_table[lp->ppp_slot]; is = ippp_table[lp->ppp_slot];
...@@ -226,7 +226,7 @@ isdn_ppp_wakeup_daemon(isdn_net_local * lp) ...@@ -226,7 +226,7 @@ isdn_ppp_wakeup_daemon(isdn_net_local * lp)
{ {
if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: ppp_slot(%d) out of range\n",
__FUNCTION__, lp->ppp_slot); __func__, lp->ppp_slot);
return; return;
} }
ippp_table[lp->ppp_slot]->state = IPPP_OPEN | IPPP_CONNECT | IPPP_NOBLOCK; ippp_table[lp->ppp_slot]->state = IPPP_OPEN | IPPP_CONNECT | IPPP_NOBLOCK;
...@@ -245,7 +245,7 @@ isdn_ppp_closewait(int slot) ...@@ -245,7 +245,7 @@ isdn_ppp_closewait(int slot)
if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: slot(%d) out of range\n", printk(KERN_ERR "%s: slot(%d) out of range\n",
__FUNCTION__, slot); __func__, slot);
return 0; return 0;
} }
is = ippp_table[slot]; is = ippp_table[slot];
...@@ -343,7 +343,7 @@ isdn_ppp_release(int min, struct file *file) ...@@ -343,7 +343,7 @@ isdn_ppp_release(int min, struct file *file)
is = file->private_data; is = file->private_data;
if (!is) { if (!is) {
printk(KERN_ERR "%s: no file->private_data\n", __FUNCTION__); printk(KERN_ERR "%s: no file->private_data\n", __func__);
return; return;
} }
if (is->debug & 0x1) if (is->debug & 0x1)
...@@ -353,7 +353,7 @@ isdn_ppp_release(int min, struct file *file) ...@@ -353,7 +353,7 @@ isdn_ppp_release(int min, struct file *file)
isdn_net_dev *p = is->lp->netdev; isdn_net_dev *p = is->lp->netdev;
if (!p) { if (!p) {
printk(KERN_ERR "%s: no lp->netdev\n", __FUNCTION__); printk(KERN_ERR "%s: no lp->netdev\n", __func__);
return; return;
} }
is->state &= ~IPPP_CONNECT; /* -> effect: no call of wakeup */ is->state &= ~IPPP_CONNECT; /* -> effect: no call of wakeup */
...@@ -1080,7 +1080,7 @@ isdn_ppp_push_higher(isdn_net_dev * net_dev, isdn_net_local * lp, struct sk_buff ...@@ -1080,7 +1080,7 @@ isdn_ppp_push_higher(isdn_net_dev * net_dev, isdn_net_local * lp, struct sk_buff
printk(KERN_DEBUG "isdn_ppp: VJC_UNCOMP\n"); printk(KERN_DEBUG "isdn_ppp: VJC_UNCOMP\n");
if (net_dev->local->ppp_slot < 0) { if (net_dev->local->ppp_slot < 0) {
printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n",
__FUNCTION__, net_dev->local->ppp_slot); __func__, net_dev->local->ppp_slot);
goto drop_packet; goto drop_packet;
} }
if (slhc_remember(ippp_table[net_dev->local->ppp_slot]->slcomp, skb->data, skb->len) <= 0) { if (slhc_remember(ippp_table[net_dev->local->ppp_slot]->slcomp, skb->data, skb->len) <= 0) {
...@@ -1107,7 +1107,7 @@ isdn_ppp_push_higher(isdn_net_dev * net_dev, isdn_net_local * lp, struct sk_buff ...@@ -1107,7 +1107,7 @@ isdn_ppp_push_higher(isdn_net_dev * net_dev, isdn_net_local * lp, struct sk_buff
skb_old->len); skb_old->len);
if (net_dev->local->ppp_slot < 0) { if (net_dev->local->ppp_slot < 0) {
printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n",
__FUNCTION__, net_dev->local->ppp_slot); __func__, net_dev->local->ppp_slot);
goto drop_packet; goto drop_packet;
} }
pkt_len = slhc_uncompress(ippp_table[net_dev->local->ppp_slot]->slcomp, pkt_len = slhc_uncompress(ippp_table[net_dev->local->ppp_slot]->slcomp,
...@@ -1553,7 +1553,7 @@ static int isdn_ppp_mp_init( isdn_net_local * lp, ippp_bundle * add_to ) ...@@ -1553,7 +1553,7 @@ static int isdn_ppp_mp_init( isdn_net_local * lp, ippp_bundle * add_to )
if (lp->ppp_slot < 0) { if (lp->ppp_slot < 0) {
printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
__FUNCTION__, lp->ppp_slot); __func__, lp->ppp_slot);
return(-EINVAL); return(-EINVAL);
} }
...@@ -1604,7 +1604,7 @@ static void isdn_ppp_mp_receive(isdn_net_dev * net_dev, isdn_net_local * lp, ...@@ -1604,7 +1604,7 @@ static void isdn_ppp_mp_receive(isdn_net_dev * net_dev, isdn_net_local * lp,
slot = lp->ppp_slot; slot = lp->ppp_slot;
if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: lp->ppp_slot(%d)\n", printk(KERN_ERR "%s: lp->ppp_slot(%d)\n",
__FUNCTION__, lp->ppp_slot); __func__, lp->ppp_slot);
stats->frame_drops++; stats->frame_drops++;
dev_kfree_skb(skb); dev_kfree_skb(skb);
spin_unlock_irqrestore(&mp->lock, flags); spin_unlock_irqrestore(&mp->lock, flags);
...@@ -1641,7 +1641,7 @@ static void isdn_ppp_mp_receive(isdn_net_dev * net_dev, isdn_net_local * lp, ...@@ -1641,7 +1641,7 @@ static void isdn_ppp_mp_receive(isdn_net_dev * net_dev, isdn_net_local * lp,
slot = lpq->ppp_slot; slot = lpq->ppp_slot;
if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: lpq->ppp_slot(%d)\n", printk(KERN_ERR "%s: lpq->ppp_slot(%d)\n",
__FUNCTION__, lpq->ppp_slot); __func__, lpq->ppp_slot);
} else { } else {
u32 lls = ippp_table[slot]->last_link_seqno; u32 lls = ippp_table[slot]->last_link_seqno;
if (MP_LT(lls, minseq)) if (MP_LT(lls, minseq))
...@@ -1875,7 +1875,7 @@ void isdn_ppp_mp_reassembly( isdn_net_dev * net_dev, isdn_net_local * lp, ...@@ -1875,7 +1875,7 @@ void isdn_ppp_mp_reassembly( isdn_net_dev * net_dev, isdn_net_local * lp,
if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
__FUNCTION__, lp->ppp_slot); __func__, lp->ppp_slot);
return; return;
} }
if( MP_FLAGS(from) == (MP_BEGIN_FRAG | MP_END_FRAG) ) { if( MP_FLAGS(from) == (MP_BEGIN_FRAG | MP_END_FRAG) ) {
...@@ -2655,7 +2655,7 @@ static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, ...@@ -2655,7 +2655,7 @@ static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
lp->ppp_slot); lp->ppp_slot);
if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
__FUNCTION__, lp->ppp_slot); __func__, lp->ppp_slot);
return; return;
} }
is = ippp_table[lp->ppp_slot]; is = ippp_table[lp->ppp_slot];
...@@ -2665,7 +2665,7 @@ static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, ...@@ -2665,7 +2665,7 @@ static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
int slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot; int slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot;
if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: slot(%d) out of range\n", printk(KERN_ERR "%s: slot(%d) out of range\n",
__FUNCTION__, slot); __func__, slot);
return; return;
} }
mis = ippp_table[slot]; mis = ippp_table[slot];
...@@ -2829,7 +2829,7 @@ static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, struct ...@@ -2829,7 +2829,7 @@ static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, struct
return; return;
if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
__FUNCTION__, slot); __func__, slot);
return; return;
} }
is = ippp_table[slot]; is = ippp_table[slot];
...@@ -2852,7 +2852,7 @@ static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, struct ...@@ -2852,7 +2852,7 @@ static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, struct
slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot; slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot;
if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
printk(KERN_ERR "%s: slot(%d) out of range\n", printk(KERN_ERR "%s: slot(%d) out of range\n",
__FUNCTION__, slot); __func__, slot);
return; return;
} }
mis = ippp_table[slot]; mis = ippp_table[slot];
......
...@@ -1347,7 +1347,7 @@ isdn_tty_tiocmget(struct tty_struct *tty, struct file *file) ...@@ -1347,7 +1347,7 @@ isdn_tty_tiocmget(struct tty_struct *tty, struct file *file)
modem_info *info = (modem_info *) tty->driver_data; modem_info *info = (modem_info *) tty->driver_data;
u_char control, status; u_char control, status;
if (isdn_tty_paranoia_check(info, tty->name, __FUNCTION__)) if (isdn_tty_paranoia_check(info, tty->name, __func__))
return -ENODEV; return -ENODEV;
if (tty->flags & (1 << TTY_IO_ERROR)) if (tty->flags & (1 << TTY_IO_ERROR))
return -EIO; return -EIO;
...@@ -1372,7 +1372,7 @@ isdn_tty_tiocmset(struct tty_struct *tty, struct file *file, ...@@ -1372,7 +1372,7 @@ isdn_tty_tiocmset(struct tty_struct *tty, struct file *file,
{ {
modem_info *info = (modem_info *) tty->driver_data; modem_info *info = (modem_info *) tty->driver_data;
if (isdn_tty_paranoia_check(info, tty->name, __FUNCTION__)) if (isdn_tty_paranoia_check(info, tty->name, __func__))
return -ENODEV; return -ENODEV;
if (tty->flags & (1 << TTY_IO_ERROR)) if (tty->flags & (1 << TTY_IO_ERROR))
return -EIO; return -EIO;
...@@ -1608,7 +1608,7 @@ isdn_tty_open(struct tty_struct *tty, struct file *filp) ...@@ -1608,7 +1608,7 @@ isdn_tty_open(struct tty_struct *tty, struct file *filp)
if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_open")) if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_open"))
return -ENODEV; return -ENODEV;
if (!try_module_get(info->owner)) { if (!try_module_get(info->owner)) {
printk(KERN_WARNING "%s: cannot reserve module\n", __FUNCTION__); printk(KERN_WARNING "%s: cannot reserve module\n", __func__);
return -ENODEV; return -ENODEV;
} }
#ifdef ISDN_DEBUG_MODEM_OPEN #ifdef ISDN_DEBUG_MODEM_OPEN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册