diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-07-29 02:01:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:56 -0400 |
commit | c94c93da90a9e46a73a5733ff8454fb4b14733fb (patch) | |
tree | a2c504b9210cbedb3c0406a2a57f761817513b57 /drivers | |
parent | d9c6350431d0c8cac000c6a230d9a20dad52e26d (diff) |
wireless: replace __FUNCTION__ with __func__
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/airo.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/hermes.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2200.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-debug.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/if_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/isl_ioctl.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/wl3501_cs.c | 8 |
9 files changed, 25 insertions, 25 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index b5cd850a4a59..ae58a12befd3 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -1915,7 +1915,7 @@ static int mpi_start_xmit(struct sk_buff *skb, struct net_device *dev) { | |||
1915 | struct airo_info *ai = dev->priv; | 1915 | struct airo_info *ai = dev->priv; |
1916 | 1916 | ||
1917 | if (!skb) { | 1917 | if (!skb) { |
1918 | airo_print_err(dev->name, "%s: skb == NULL!",__FUNCTION__); | 1918 | airo_print_err(dev->name, "%s: skb == NULL!",__func__); |
1919 | return 0; | 1919 | return 0; |
1920 | } | 1920 | } |
1921 | npacks = skb_queue_len (&ai->txq); | 1921 | npacks = skb_queue_len (&ai->txq); |
@@ -1964,7 +1964,7 @@ static int mpi_send_packet (struct net_device *dev) | |||
1964 | if ((skb = skb_dequeue(&ai->txq)) == NULL) { | 1964 | if ((skb = skb_dequeue(&ai->txq)) == NULL) { |
1965 | airo_print_err(dev->name, | 1965 | airo_print_err(dev->name, |
1966 | "%s: Dequeue'd zero in send_packet()", | 1966 | "%s: Dequeue'd zero in send_packet()", |
1967 | __FUNCTION__); | 1967 | __func__); |
1968 | return 0; | 1968 | return 0; |
1969 | } | 1969 | } |
1970 | 1970 | ||
@@ -2115,7 +2115,7 @@ static int airo_start_xmit(struct sk_buff *skb, struct net_device *dev) { | |||
2115 | u32 *fids = priv->fids; | 2115 | u32 *fids = priv->fids; |
2116 | 2116 | ||
2117 | if ( skb == NULL ) { | 2117 | if ( skb == NULL ) { |
2118 | airo_print_err(dev->name, "%s: skb == NULL!", __FUNCTION__); | 2118 | airo_print_err(dev->name, "%s: skb == NULL!", __func__); |
2119 | return 0; | 2119 | return 0; |
2120 | } | 2120 | } |
2121 | 2121 | ||
@@ -2186,7 +2186,7 @@ static int airo_start_xmit11(struct sk_buff *skb, struct net_device *dev) { | |||
2186 | } | 2186 | } |
2187 | 2187 | ||
2188 | if ( skb == NULL ) { | 2188 | if ( skb == NULL ) { |
2189 | airo_print_err(dev->name, "%s: skb == NULL!", __FUNCTION__); | 2189 | airo_print_err(dev->name, "%s: skb == NULL!", __func__); |
2190 | return 0; | 2190 | return 0; |
2191 | } | 2191 | } |
2192 | 2192 | ||
@@ -4127,7 +4127,7 @@ static int PC4500_writerid(struct airo_info *ai, u16 rid, | |||
4127 | if (test_bit(FLAG_ENABLED, &ai->flags) && (RID_WEP_TEMP != rid)) | 4127 | if (test_bit(FLAG_ENABLED, &ai->flags) && (RID_WEP_TEMP != rid)) |
4128 | airo_print_err(ai->dev->name, | 4128 | airo_print_err(ai->dev->name, |
4129 | "%s: MAC should be disabled (rid=%04x)", | 4129 | "%s: MAC should be disabled (rid=%04x)", |
4130 | __FUNCTION__, rid); | 4130 | __func__, rid); |
4131 | memset(&cmd, 0, sizeof(cmd)); | 4131 | memset(&cmd, 0, sizeof(cmd)); |
4132 | memset(&rsp, 0, sizeof(rsp)); | 4132 | memset(&rsp, 0, sizeof(rsp)); |
4133 | 4133 | ||
@@ -4142,7 +4142,7 @@ static int PC4500_writerid(struct airo_info *ai, u16 rid, | |||
4142 | &ai->config_desc.rid_desc, sizeof(Rid)); | 4142 | &ai->config_desc.rid_desc, sizeof(Rid)); |
4143 | 4143 | ||
4144 | if (len < 4 || len > 2047) { | 4144 | if (len < 4 || len > 2047) { |
4145 | airo_print_err(ai->dev->name, "%s: len=%d", __FUNCTION__, len); | 4145 | airo_print_err(ai->dev->name, "%s: len=%d", __func__, len); |
4146 | rc = -1; | 4146 | rc = -1; |
4147 | } else { | 4147 | } else { |
4148 | memcpy((char *)ai->config_desc.virtual_host_addr, | 4148 | memcpy((char *)ai->config_desc.virtual_host_addr, |
@@ -4151,9 +4151,9 @@ static int PC4500_writerid(struct airo_info *ai, u16 rid, | |||
4151 | rc = issuecommand(ai, &cmd, &rsp); | 4151 | rc = issuecommand(ai, &cmd, &rsp); |
4152 | if ((rc & 0xff00) != 0) { | 4152 | if ((rc & 0xff00) != 0) { |
4153 | airo_print_err(ai->dev->name, "%s: Write rid Error %d", | 4153 | airo_print_err(ai->dev->name, "%s: Write rid Error %d", |
4154 | __FUNCTION__, rc); | 4154 | __func__, rc); |
4155 | airo_print_err(ai->dev->name, "%s: Cmd=%04x", | 4155 | airo_print_err(ai->dev->name, "%s: Cmd=%04x", |
4156 | __FUNCTION__, cmd.cmd); | 4156 | __func__, cmd.cmd); |
4157 | } | 4157 | } |
4158 | 4158 | ||
4159 | if ((rsp.status & 0x7f00)) | 4159 | if ((rsp.status & 0x7f00)) |
diff --git a/drivers/net/wireless/hermes.c b/drivers/net/wireless/hermes.c index 29d39105f5b8..2cd86af1390d 100644 --- a/drivers/net/wireless/hermes.c +++ b/drivers/net/wireless/hermes.c | |||
@@ -463,7 +463,7 @@ int hermes_read_ltv(hermes_t *hw, int bap, u16 rid, unsigned bufsize, | |||
463 | if (rtype != rid) | 463 | if (rtype != rid) |
464 | printk(KERN_WARNING "hermes @ %p: %s(): " | 464 | printk(KERN_WARNING "hermes @ %p: %s(): " |
465 | "rid (0x%04x) does not match type (0x%04x)\n", | 465 | "rid (0x%04x) does not match type (0x%04x)\n", |
466 | hw->iobase, __FUNCTION__, rid, rtype); | 466 | hw->iobase, __func__, rid, rtype); |
467 | if (HERMES_RECLEN_TO_BYTES(rlength) > bufsize) | 467 | if (HERMES_RECLEN_TO_BYTES(rlength) > bufsize) |
468 | printk(KERN_WARNING "hermes @ %p: " | 468 | printk(KERN_WARNING "hermes @ %p: " |
469 | "Truncating LTV record from %d to %d bytes. " | 469 | "Truncating LTV record from %d to %d bytes. " |
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 19a401c4a0dc..bca74811bc7f 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -211,7 +211,7 @@ static u32 ipw2100_debug_level = IPW_DL_NONE; | |||
211 | do { \ | 211 | do { \ |
212 | if (ipw2100_debug_level & (level)) { \ | 212 | if (ipw2100_debug_level & (level)) { \ |
213 | printk(KERN_DEBUG "ipw2100: %c %s ", \ | 213 | printk(KERN_DEBUG "ipw2100: %c %s ", \ |
214 | in_interrupt() ? 'I' : 'U', __FUNCTION__); \ | 214 | in_interrupt() ? 'I' : 'U', __func__); \ |
215 | printk(message); \ | 215 | printk(message); \ |
216 | } \ | 216 | } \ |
217 | } while (0) | 217 | } while (0) |
diff --git a/drivers/net/wireless/ipw2200.h b/drivers/net/wireless/ipw2200.h index d4ab28b73b32..0bad1ec3e7e0 100644 --- a/drivers/net/wireless/ipw2200.h +++ b/drivers/net/wireless/ipw2200.h | |||
@@ -1394,13 +1394,13 @@ BIT_ARG16(x) | |||
1394 | #define IPW_DEBUG(level, fmt, args...) \ | 1394 | #define IPW_DEBUG(level, fmt, args...) \ |
1395 | do { if (ipw_debug_level & (level)) \ | 1395 | do { if (ipw_debug_level & (level)) \ |
1396 | printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \ | 1396 | printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \ |
1397 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) | 1397 | in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0) |
1398 | 1398 | ||
1399 | #ifdef CONFIG_IPW2200_DEBUG | 1399 | #ifdef CONFIG_IPW2200_DEBUG |
1400 | #define IPW_LL_DEBUG(level, fmt, args...) \ | 1400 | #define IPW_LL_DEBUG(level, fmt, args...) \ |
1401 | do { if (ipw_debug_level & (level)) \ | 1401 | do { if (ipw_debug_level & (level)) \ |
1402 | printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \ | 1402 | printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \ |
1403 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) | 1403 | in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0) |
1404 | #else | 1404 | #else |
1405 | #define IPW_LL_DEBUG(level, fmt, args...) do {} while (0) | 1405 | #define IPW_LL_DEBUG(level, fmt, args...) do {} while (0) |
1406 | #endif /* CONFIG_IPW2200_DEBUG */ | 1406 | #endif /* CONFIG_IPW2200_DEBUG */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-debug.h b/drivers/net/wireless/iwlwifi/iwl-3945-debug.h index f1d002f7b790..33016fb5e9b3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-debug.h | |||
@@ -34,12 +34,12 @@ extern u32 iwl3945_debug_level; | |||
34 | #define IWL_DEBUG(level, fmt, args...) \ | 34 | #define IWL_DEBUG(level, fmt, args...) \ |
35 | do { if (iwl3945_debug_level & (level)) \ | 35 | do { if (iwl3945_debug_level & (level)) \ |
36 | printk(KERN_ERR DRV_NAME": %c %s " fmt, \ | 36 | printk(KERN_ERR DRV_NAME": %c %s " fmt, \ |
37 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) | 37 | in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0) |
38 | 38 | ||
39 | #define IWL_DEBUG_LIMIT(level, fmt, args...) \ | 39 | #define IWL_DEBUG_LIMIT(level, fmt, args...) \ |
40 | do { if ((iwl3945_debug_level & (level)) && net_ratelimit()) \ | 40 | do { if ((iwl3945_debug_level & (level)) && net_ratelimit()) \ |
41 | printk(KERN_ERR DRV_NAME": %c %s " fmt, \ | 41 | printk(KERN_ERR DRV_NAME": %c %s " fmt, \ |
42 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) | 42 | in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0) |
43 | 43 | ||
44 | static inline void iwl3945_print_hex_dump(int level, void *p, u32 len) | 44 | static inline void iwl3945_print_hex_dump(int level, void *p, u32 len) |
45 | { | 45 | { |
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index 04d7a251e3f0..92837a2dd6d5 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c | |||
@@ -720,7 +720,7 @@ static int if_cs_host_to_card(struct lbs_private *priv, | |||
720 | ret = if_cs_send_cmd(priv, buf, nb); | 720 | ret = if_cs_send_cmd(priv, buf, nb); |
721 | break; | 721 | break; |
722 | default: | 722 | default: |
723 | lbs_pr_err("%s: unsupported type %d\n", __FUNCTION__, type); | 723 | lbs_pr_err("%s: unsupported type %d\n", __func__, type); |
724 | } | 724 | } |
725 | 725 | ||
726 | lbs_deb_leave_args(LBS_DEB_CS, "ret %d", ret); | 726 | lbs_deb_leave_args(LBS_DEB_CS, "ret %d", ret); |
diff --git a/drivers/net/wireless/prism54/isl_ioctl.c b/drivers/net/wireless/prism54/isl_ioctl.c index 3d75a7137d3c..16e68f4b654a 100644 --- a/drivers/net/wireless/prism54/isl_ioctl.c +++ b/drivers/net/wireless/prism54/isl_ioctl.c | |||
@@ -71,7 +71,7 @@ prism54_mib_mode_helper(islpci_private *priv, u32 iw_mode) | |||
71 | if (iw_mode == IW_MODE_REPEAT || iw_mode == IW_MODE_SECOND) { | 71 | if (iw_mode == IW_MODE_REPEAT || iw_mode == IW_MODE_SECOND) { |
72 | printk(KERN_DEBUG | 72 | printk(KERN_DEBUG |
73 | "%s(): Sorry, Repeater mode and Secondary mode " | 73 | "%s(): Sorry, Repeater mode and Secondary mode " |
74 | "are not yet supported by this driver.\n", __FUNCTION__); | 74 | "are not yet supported by this driver.\n", __func__); |
75 | return -EINVAL; | 75 | return -EINVAL; |
76 | } | 76 | } |
77 | 77 | ||
@@ -333,7 +333,7 @@ prism54_set_mode(struct net_device *ndev, struct iw_request_info *info, | |||
333 | if (*uwrq > IW_MODE_MONITOR || *uwrq < IW_MODE_AUTO) { | 333 | if (*uwrq > IW_MODE_MONITOR || *uwrq < IW_MODE_AUTO) { |
334 | printk(KERN_DEBUG | 334 | printk(KERN_DEBUG |
335 | "%s: %s() You passed a non-valid init_mode.\n", | 335 | "%s: %s() You passed a non-valid init_mode.\n", |
336 | priv->ndev->name, __FUNCTION__); | 336 | priv->ndev->name, __func__); |
337 | return -EINVAL; | 337 | return -EINVAL; |
338 | } | 338 | } |
339 | 339 | ||
@@ -1234,7 +1234,7 @@ prism54_set_txpower(struct net_device *ndev, struct iw_request_info *info, | |||
1234 | /* don't know how to disable radio */ | 1234 | /* don't know how to disable radio */ |
1235 | printk(KERN_DEBUG | 1235 | printk(KERN_DEBUG |
1236 | "%s: %s() disabling radio is not yet supported.\n", | 1236 | "%s: %s() disabling radio is not yet supported.\n", |
1237 | priv->ndev->name, __FUNCTION__); | 1237 | priv->ndev->name, __func__); |
1238 | return -ENOTSUPP; | 1238 | return -ENOTSUPP; |
1239 | } else if (vwrq->fixed) | 1239 | } else if (vwrq->fixed) |
1240 | /* currently only fixed value is supported */ | 1240 | /* currently only fixed value is supported */ |
@@ -1242,7 +1242,7 @@ prism54_set_txpower(struct net_device *ndev, struct iw_request_info *info, | |||
1242 | else { | 1242 | else { |
1243 | printk(KERN_DEBUG | 1243 | printk(KERN_DEBUG |
1244 | "%s: %s() auto power will be implemented later.\n", | 1244 | "%s: %s() auto power will be implemented later.\n", |
1245 | priv->ndev->name, __FUNCTION__); | 1245 | priv->ndev->name, __func__); |
1246 | return -ENOTSUPP; | 1246 | return -ENOTSUPP; |
1247 | } | 1247 | } |
1248 | } | 1248 | } |
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 8b10ea41b204..82c28dcc471d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -53,11 +53,11 @@ | |||
53 | */ | 53 | */ |
54 | #define DEBUG_PRINTK_MSG(__dev, __kernlvl, __lvl, __msg, __args...) \ | 54 | #define DEBUG_PRINTK_MSG(__dev, __kernlvl, __lvl, __msg, __args...) \ |
55 | printk(__kernlvl "%s -> %s: %s - " __msg, \ | 55 | printk(__kernlvl "%s -> %s: %s - " __msg, \ |
56 | wiphy_name((__dev)->hw->wiphy), __FUNCTION__, __lvl, ##__args) | 56 | wiphy_name((__dev)->hw->wiphy), __func__, __lvl, ##__args) |
57 | 57 | ||
58 | #define DEBUG_PRINTK_PROBE(__kernlvl, __lvl, __msg, __args...) \ | 58 | #define DEBUG_PRINTK_PROBE(__kernlvl, __lvl, __msg, __args...) \ |
59 | printk(__kernlvl "%s -> %s: %s - " __msg, \ | 59 | printk(__kernlvl "%s -> %s: %s - " __msg, \ |
60 | KBUILD_MODNAME, __FUNCTION__, __lvl, ##__args) | 60 | KBUILD_MODNAME, __func__, __lvl, ##__args) |
61 | 61 | ||
62 | #ifdef CONFIG_RT2X00_DEBUG | 62 | #ifdef CONFIG_RT2X00_DEBUG |
63 | #define DEBUG_PRINTK(__dev, __kernlvl, __lvl, __msg, __args...) \ | 63 | #define DEBUG_PRINTK(__dev, __kernlvl, __lvl, __msg, __args...) \ |
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index 377141995e36..b6d4e04b8ab4 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c | |||
@@ -79,7 +79,7 @@ static int pc_debug = PCMCIA_DEBUG; | |||
79 | module_param(pc_debug, int, 0); | 79 | module_param(pc_debug, int, 0); |
80 | #define dprintk(n, format, args...) \ | 80 | #define dprintk(n, format, args...) \ |
81 | { if (pc_debug > (n)) \ | 81 | { if (pc_debug > (n)) \ |
82 | printk(KERN_INFO "%s: " format "\n", __FUNCTION__ , ##args); } | 82 | printk(KERN_INFO "%s: " format "\n", __func__ , ##args); } |
83 | #else | 83 | #else |
84 | #define dprintk(n, format, args...) | 84 | #define dprintk(n, format, args...) |
85 | #endif | 85 | #endif |
@@ -470,7 +470,7 @@ static int wl3501_pwr_mgmt(struct wl3501_card *this, int suspend) | |||
470 | spin_unlock_irqrestore(&this->lock, flags); | 470 | spin_unlock_irqrestore(&this->lock, flags); |
471 | rc = wait_event_interruptible(this->wait, | 471 | rc = wait_event_interruptible(this->wait, |
472 | this->sig_pwr_mgmt_confirm.status != 255); | 472 | this->sig_pwr_mgmt_confirm.status != 255); |
473 | printk(KERN_INFO "%s: %s status=%d\n", __FUNCTION__, | 473 | printk(KERN_INFO "%s: %s status=%d\n", __func__, |
474 | suspend ? "suspend" : "resume", | 474 | suspend ? "suspend" : "resume", |
475 | this->sig_pwr_mgmt_confirm.status); | 475 | this->sig_pwr_mgmt_confirm.status); |
476 | goto out; | 476 | goto out; |
@@ -1199,7 +1199,7 @@ static int wl3501_reset_board(struct wl3501_card *this) | |||
1199 | } | 1199 | } |
1200 | WL3501_NOPLOOP(10); | 1200 | WL3501_NOPLOOP(10); |
1201 | } | 1201 | } |
1202 | printk(KERN_WARNING "%s: failed to reset the board!\n", __FUNCTION__); | 1202 | printk(KERN_WARNING "%s: failed to reset the board!\n", __func__); |
1203 | rc = -ENODEV; | 1203 | rc = -ENODEV; |
1204 | out: | 1204 | out: |
1205 | return rc; | 1205 | return rc; |
@@ -1250,7 +1250,7 @@ static int wl3501_init_firmware(struct wl3501_card *this) | |||
1250 | out: | 1250 | out: |
1251 | return rc; | 1251 | return rc; |
1252 | fail: | 1252 | fail: |
1253 | printk(KERN_WARNING "%s: failed!\n", __FUNCTION__); | 1253 | printk(KERN_WARNING "%s: failed!\n", __func__); |
1254 | goto out; | 1254 | goto out; |
1255 | } | 1255 | } |
1256 | 1256 | ||