Commit 536a4f75 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

staging: ks7010: Use %pM format specifier for MAC addresses

Convert to %pM instead of using custom code.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200730152312.39076-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d8a0f85d
...@@ -161,7 +161,7 @@ int get_current_ap(struct ks_wlan_private *priv, struct link_ap_info *ap_info) ...@@ -161,7 +161,7 @@ int get_current_ap(struct ks_wlan_private *priv, struct link_ap_info *ap_info)
wireless_send_event(netdev, SIOCGIWAP, &wrqu, NULL); wireless_send_event(netdev, SIOCGIWAP, &wrqu, NULL);
} }
netdev_dbg(priv->net_dev, "Link AP\n" netdev_dbg(priv->net_dev, "Link AP\n"
"- bssid=%02X:%02X:%02X:%02X:%02X:%02X\n" "- bssid=%pM\n"
"- essid=%s\n" "- essid=%s\n"
"- rate_set=%02X,%02X,%02X,%02X,%02X,%02X,%02X,%02X\n" "- rate_set=%02X,%02X,%02X,%02X,%02X,%02X,%02X,%02X\n"
"- channel=%d\n" "- channel=%d\n"
...@@ -172,8 +172,7 @@ int get_current_ap(struct ks_wlan_private *priv, struct link_ap_info *ap_info) ...@@ -172,8 +172,7 @@ int get_current_ap(struct ks_wlan_private *priv, struct link_ap_info *ap_info)
"- rsn.size=%d\n" "- rsn.size=%d\n"
"- ext_rate_set_size=%d\n" "- ext_rate_set_size=%d\n"
"- rate_set_size=%d\n", "- rate_set_size=%d\n",
ap->bssid[0], ap->bssid[1], ap->bssid[2], ap->bssid,
ap->bssid[3], ap->bssid[4], ap->bssid[5],
&ap->ssid.body[0], &ap->ssid.body[0],
ap->rate_set.body[0], ap->rate_set.body[1], ap->rate_set.body[0], ap->rate_set.body[1],
ap->rate_set.body[2], ap->rate_set.body[3], ap->rate_set.body[2], ap->rate_set.body[3],
...@@ -439,11 +438,7 @@ void hostif_data_indication(struct ks_wlan_private *priv) ...@@ -439,11 +438,7 @@ void hostif_data_indication(struct ks_wlan_private *priv)
/* source address check */ /* source address check */
if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) { if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) {
netdev_err(priv->net_dev, "invalid : source is own mac address !!\n"); netdev_err(priv->net_dev, "invalid : source is own mac address !!\n");
netdev_err(priv->net_dev, netdev_err(priv->net_dev, "eth_hdrernet->h_dest=%pM\n", eth_hdr->h_source);
"eth_hdrernet->h_dest=%02X:%02X:%02X:%02X:%02X:%02X\n",
eth_hdr->h_source[0], eth_hdr->h_source[1],
eth_hdr->h_source[2], eth_hdr->h_source[3],
eth_hdr->h_source[4], eth_hdr->h_source[5]);
priv->nstats.rx_errors++; priv->nstats.rx_errors++;
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment