iwlegacy: convert hex_dump_to_buffer() to %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 16 Jul 2015 12:42:15 +0000 (15:42 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Jul 2015 15:08:21 +0000 (18:08 +0300)
commit8358491d893e08d4b82af0d6012e078158f57ed9
treef7c642f9f7fc59ce1111d8305c71c7b145fdb09d
parent5d6af28a2d240602a594cea236406a9d29bc719a
iwlegacy: 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 the 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: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/iwlegacy/3945-mac.c
drivers/net/wireless/iwlegacy/debug.c