commit 3fa7db9c47d55c691701a7cd34d11493c29850bb Author: Jiri Slaby Date: Sat Jul 21 11:50:09 2007 +0200 change ath_dump_skb second param to const char * diff --git a/ath.c b/ath.c index c6dde74..8d7cf57 100644 --- a/ath.c +++ b/ath.c @@ -144,13 +144,13 @@ static void ath_printtxbuf(struct ath_buf *bf, int done) #endif #if ATH_DUMP_SKB -static inline void ath_dump_skb(struct sk_buff *skb, unsigned int rx) +static inline void ath_dump_skb(struct sk_buff *skb, const char *prefix) { - print_hex_dump_bytes(rx ? "r" : "t", DUMP_PREFIX_NONE, skb->data, + print_hex_dump_bytes(prefix, DUMP_PREFIX_NONE, skb->data, min(200U, skb->len)); } #else -static inline void ath_dump_skb(struct sk_buff *skb, unsigned int rx) {} +static inline void ath_dump_skb(struct sk_buff *skb, const char *prefix) {} #endif static void ath_tasklet_reset(unsigned long data) @@ -424,7 +424,7 @@ accept: rxs.flag |= ath_rx_decrypted(sc, ds, skb); // printk(KERN_DEBUG "stat: %x, dlen: %u (hdr: %u), rssi: %d, rate: %u\n", ds->ds_rxstat.rs_status, len, ieee80211_get_hdrlen_from_skb(skb), ds->ds_rxstat.rs_rssi, ds->ds_rxstat.rs_rate); - ath_dump_skb(skb, 1); + ath_dump_skb(skb, "r"); __ieee80211_rx(sc->hw, skb, &rxs); sc->led_rxrate = ds->ds_rxstat.rs_rate; @@ -970,7 +970,7 @@ static int ath_tx(struct ieee80211_hw *hw, struct sk_buff *skb, struct ath_buf *bf; unsigned long flags; - ath_dump_skb(skb, 0); + ath_dump_skb(skb, "t"); sc->led_txrate = ctl->tx_rate;