mwifiex: dump small buffers with help of %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 May 2013 10:04:20 +0000 (13:04 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 May 2013 19:22:48 +0000 (15:22 -0400)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/join.c

index 6bcb66e6e97c8c1a43a139ba6970ddc0b15f701e..122175af18c657066509121d2ea6a937902fb7c3 100644 (file)
@@ -919,9 +919,8 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
        memcpy(&priv->curr_bss_params.data_rates,
               &adhoc_start->data_rate, priv->curr_bss_params.num_of_rates);
 
-       dev_dbg(adapter->dev, "info: ADHOC_S_CMD: rates=%02x %02x %02x %02x\n",
-               adhoc_start->data_rate[0], adhoc_start->data_rate[1],
-               adhoc_start->data_rate[2], adhoc_start->data_rate[3]);
+       dev_dbg(adapter->dev, "info: ADHOC_S_CMD: rates=%4ph\n",
+               adhoc_start->data_rate);
 
        dev_dbg(adapter->dev, "info: ADHOC_S_CMD: AD-HOC Start command is ready\n");