diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-18 21:02:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-18 21:02:35 -0400 |
commit | 334d094504c2fe1c44211ecb49146ae6bca8c321 (patch) | |
tree | d3c0f68e4b9f8e3d2ccc39e7dfe5de0534a5fad9 /net/irda/wrapper.c | |
parent | d1a4be630fb068f251d64b62919f143c49ca8057 (diff) | |
parent | d1643d24c61b725bef399cc1cf2944b4c9c23177 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.26
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.26: (1090 commits)
[NET]: Fix and allocate less memory for ->priv'less netdevices
[IPV6]: Fix dangling references on error in fib6_add().
[NETLABEL]: Fix NULL deref in netlbl_unlabel_staticlist_gen() if ifindex not found
[PKT_SCHED]: Fix datalen check in tcf_simp_init().
[INET]: Uninline the __inet_inherit_port call.
[INET]: Drop the inet_inherit_port() call.
SCTP: Initialize partial_bytes_acked to 0, when all of the data is acked.
[netdrvr] forcedeth: internal simplifications; changelog removal
phylib: factor out get_phy_id from within get_phy_device
PHY: add BCM5464 support to broadcom PHY driver
cxgb3: Fix __must_check warning with dev_dbg.
tc35815: Statistics cleanup
natsemi: fix MMIO for PPC 44x platforms
[TIPC]: Cleanup of TIPC reference table code
[TIPC]: Optimized initialization of TIPC reference table
[TIPC]: Remove inlining of reference table locking routines
e1000: convert uint16_t style integers to u16
ixgb: convert uint16_t style integers to u16
sb1000.c: make const arrays static
sb1000.c: stop inlining largish static functions
...
Diffstat (limited to 'net/irda/wrapper.c')
-rw-r--r-- | net/irda/wrapper.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/irda/wrapper.c b/net/irda/wrapper.c index c246983308b8..fd0995b1323a 100644 --- a/net/irda/wrapper.c +++ b/net/irda/wrapper.c | |||
@@ -106,16 +106,16 @@ int async_wrap_skb(struct sk_buff *skb, __u8 *tx_buff, int buffsize) | |||
106 | * Nothing to worry about, but we set the default number of | 106 | * Nothing to worry about, but we set the default number of |
107 | * BOF's | 107 | * BOF's |
108 | */ | 108 | */ |
109 | IRDA_DEBUG(1, "%s(), wrong magic in skb!\n", __FUNCTION__); | 109 | IRDA_DEBUG(1, "%s(), wrong magic in skb!\n", __func__); |
110 | xbofs = 10; | 110 | xbofs = 10; |
111 | } else | 111 | } else |
112 | xbofs = cb->xbofs + cb->xbofs_delay; | 112 | xbofs = cb->xbofs + cb->xbofs_delay; |
113 | 113 | ||
114 | IRDA_DEBUG(4, "%s(), xbofs=%d\n", __FUNCTION__, xbofs); | 114 | IRDA_DEBUG(4, "%s(), xbofs=%d\n", __func__, xbofs); |
115 | 115 | ||
116 | /* Check that we never use more than 115 + 48 xbofs */ | 116 | /* Check that we never use more than 115 + 48 xbofs */ |
117 | if (xbofs > 163) { | 117 | if (xbofs > 163) { |
118 | IRDA_DEBUG(0, "%s(), too many xbofs (%d)\n", __FUNCTION__, | 118 | IRDA_DEBUG(0, "%s(), too many xbofs (%d)\n", __func__, |
119 | xbofs); | 119 | xbofs); |
120 | xbofs = 163; | 120 | xbofs = 163; |
121 | } | 121 | } |
@@ -135,7 +135,7 @@ int async_wrap_skb(struct sk_buff *skb, __u8 *tx_buff, int buffsize) | |||
135 | */ | 135 | */ |
136 | if(n >= (buffsize-5)) { | 136 | if(n >= (buffsize-5)) { |
137 | IRDA_ERROR("%s(), tx buffer overflow (n=%d)\n", | 137 | IRDA_ERROR("%s(), tx buffer overflow (n=%d)\n", |
138 | __FUNCTION__, n); | 138 | __func__, n); |
139 | return n; | 139 | return n; |
140 | } | 140 | } |
141 | 141 | ||
@@ -287,7 +287,7 @@ async_unwrap_bof(struct net_device *dev, | |||
287 | /* Not supposed to happen, the previous frame is not | 287 | /* Not supposed to happen, the previous frame is not |
288 | * finished - Jean II */ | 288 | * finished - Jean II */ |
289 | IRDA_DEBUG(1, "%s(), Discarding incomplete frame\n", | 289 | IRDA_DEBUG(1, "%s(), Discarding incomplete frame\n", |
290 | __FUNCTION__); | 290 | __func__); |
291 | stats->rx_errors++; | 291 | stats->rx_errors++; |
292 | stats->rx_missed_errors++; | 292 | stats->rx_missed_errors++; |
293 | irda_device_set_media_busy(dev, TRUE); | 293 | irda_device_set_media_busy(dev, TRUE); |
@@ -360,7 +360,7 @@ async_unwrap_eof(struct net_device *dev, | |||
360 | /* Wrong CRC, discard frame! */ | 360 | /* Wrong CRC, discard frame! */ |
361 | irda_device_set_media_busy(dev, TRUE); | 361 | irda_device_set_media_busy(dev, TRUE); |
362 | 362 | ||
363 | IRDA_DEBUG(1, "%s(), crc error\n", __FUNCTION__); | 363 | IRDA_DEBUG(1, "%s(), crc error\n", __func__); |
364 | stats->rx_errors++; | 364 | stats->rx_errors++; |
365 | stats->rx_crc_errors++; | 365 | stats->rx_crc_errors++; |
366 | } | 366 | } |
@@ -386,7 +386,7 @@ async_unwrap_ce(struct net_device *dev, | |||
386 | break; | 386 | break; |
387 | 387 | ||
388 | case LINK_ESCAPE: | 388 | case LINK_ESCAPE: |
389 | IRDA_WARNING("%s: state not defined\n", __FUNCTION__); | 389 | IRDA_WARNING("%s: state not defined\n", __func__); |
390 | break; | 390 | break; |
391 | 391 | ||
392 | case BEGIN_FRAME: | 392 | case BEGIN_FRAME: |
@@ -421,7 +421,7 @@ async_unwrap_other(struct net_device *dev, | |||
421 | #endif | 421 | #endif |
422 | } else { | 422 | } else { |
423 | IRDA_DEBUG(1, "%s(), Rx buffer overflow, aborting\n", | 423 | IRDA_DEBUG(1, "%s(), Rx buffer overflow, aborting\n", |
424 | __FUNCTION__); | 424 | __func__); |
425 | rx_buff->state = OUTSIDE_FRAME; | 425 | rx_buff->state = OUTSIDE_FRAME; |
426 | } | 426 | } |
427 | break; | 427 | break; |
@@ -440,7 +440,7 @@ async_unwrap_other(struct net_device *dev, | |||
440 | rx_buff->state = INSIDE_FRAME; | 440 | rx_buff->state = INSIDE_FRAME; |
441 | } else { | 441 | } else { |
442 | IRDA_DEBUG(1, "%s(), Rx buffer overflow, aborting\n", | 442 | IRDA_DEBUG(1, "%s(), Rx buffer overflow, aborting\n", |
443 | __FUNCTION__); | 443 | __func__); |
444 | rx_buff->state = OUTSIDE_FRAME; | 444 | rx_buff->state = OUTSIDE_FRAME; |
445 | } | 445 | } |
446 | break; | 446 | break; |