]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: convert hex_dump_to_buffer() to %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 16 Jul 2015 12:42:14 +0000 (15:42 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 16 Aug 2015 07:22:10 +0000 (10:22 +0300)
commit61d91b754e2cfad79af29b6b625551ed80c1d972
tree9fd3eda40b400b02b77a44adf50a811c15d5539d
parent254dfd3da8b1e0ddf95273c23b8d2b1d70ff4e01
iwlwifi: convert hex_dump_to_buffer() to %*ph

There is no need to use hex_dump_to_buffer() in the cases like this:

hexdump_to_buffer(buf, len, 16, 1, outbuf, outlen, false); /* len <= 16 */
sprintf("%s\n", outbuf);

since it maybe easily converted to simple:

sprintf("%*ph\n", len, buf);

Note: it seems in one case the output is groupped by 2 bytes and looks like a
typo. Thus, patch changes that to plain byte stream.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/dvm/debugfs.c
drivers/net/wireless/iwlwifi/mvm/debugfs.c