staging: rtl8188eu: print OUI with %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 10 Dec 2015 15:43:55 +0000 (17:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:00:46 +0000 (19:00 -0800)
There is no need to pass each byte as a parameter when printing values in hex
format. We rather use %*ph specifier for that.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ieee80211.c

index 742b29c590df92a676732341db82c7984ab6e3aa..aa7f5711a14714a4b9caf6e57b519542b663389f 100644 (file)
@@ -935,8 +935,8 @@ static int rtw_ieee802_11_parse_vendor_specific(u8 *pos, uint elen,
                }
                break;
        default:
-               DBG_88E("unknown vendor specific information element ignored (vendor OUI %02x:%02x:%02x len=%lu)\n",
-                       pos[0], pos[1], pos[2], (unsigned long)elen);
+               DBG_88E("unknown vendor specific information element ignored (vendor OUI %3phC len=%lu)\n",
+                       pos, (unsigned long)elen);
                return -1;
        }
        return 0;