diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/wireless/iwlwifi/iwl-debugfs.c | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 20db0eb636a8..753f9387aa68 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -228,7 +228,6 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, | |||
228 | ssize_t ret; | 228 | ssize_t ret; |
229 | /* Add 30 for initial string */ | 229 | /* Add 30 for initial string */ |
230 | const size_t bufsz = 30 + sizeof(char) * 500 * (priv->num_stations); | 230 | const size_t bufsz = 30 + sizeof(char) * 500 * (priv->num_stations); |
231 | DECLARE_MAC_BUF(mac); | ||
232 | 231 | ||
233 | buf = kmalloc(bufsz, GFP_KERNEL); | 232 | buf = kmalloc(bufsz, GFP_KERNEL); |
234 | if (!buf) | 233 | if (!buf) |
@@ -242,7 +241,6 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, | |||
242 | if (station->used) { | 241 | if (station->used) { |
243 | pos += scnprintf(buf + pos, bufsz - pos, | 242 | pos += scnprintf(buf + pos, bufsz - pos, |
244 | "station %d:\ngeneral data:\n", i+1); | 243 | "station %d:\ngeneral data:\n", i+1); |
245 | print_mac(mac, station->sta.sta.addr); | ||
246 | pos += scnprintf(buf + pos, bufsz - pos, "id: %u\n", | 244 | pos += scnprintf(buf + pos, bufsz - pos, "id: %u\n", |
247 | station->sta.sta.sta_id); | 245 | station->sta.sta.sta_id); |
248 | pos += scnprintf(buf + pos, bufsz - pos, "mode: %u\n", | 246 | pos += scnprintf(buf + pos, bufsz - pos, "mode: %u\n", |