]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit3cd6e2f768851a760c072f0f84b9688b1755d24d
tree9fd3eda40b400b02b77a44adf50a811c15d5539d
parent1be5d8cc165d56b7267f5adc96d496a33c33219e
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