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>
This commit is contained in:
committed by
David S. Miller
parent
0c68ae2605
commit
e174961ca1
@@ -228,7 +228,6 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf,
|
||||
ssize_t ret;
|
||||
/* Add 30 for initial string */
|
||||
const size_t bufsz = 30 + sizeof(char) * 500 * (priv->num_stations);
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
buf = kmalloc(bufsz, GFP_KERNEL);
|
||||
if (!buf)
|
||||
@@ -242,7 +241,6 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf,
|
||||
if (station->used) {
|
||||
pos += scnprintf(buf + pos, bufsz - pos,
|
||||
"station %d:\ngeneral data:\n", i+1);
|
||||
print_mac(mac, station->sta.sta.addr);
|
||||
pos += scnprintf(buf + pos, bufsz - pos, "id: %u\n",
|
||||
station->sta.sta.sta_id);
|
||||
pos += scnprintf(buf + pos, bufsz - pos, "mode: %u\n",
|
||||
|
Reference in New Issue
Block a user