linux-stable/Documentation
Andy Shevchenko 31550a16a5 vsprintf: add support of '%*ph[CDN]'
There are many places in the kernel where the drivers print small buffers
as a hex string.  This patch adds a support of the variable width buffer
to print it as a hex string with a delimiter.  The idea came from Pavel
Roskin here: http://www.digipedia.pl/usenet/thread/18835/17449/

Sample output of
	pr_info("buf[%d:%d] %*phC\n", from, len, len, &buf[from]);
could be look like this:
	[ 0.726130] buf[51:8] e8:16:b6:ef:e3:74:45:6e
	[ 0.750736] buf[59:15] 31:81:b8:3f:35:49:06:ae:df:32:06:05:4a:af:55
	[ 0.757602] buf[17:5] ac:16:d5:2c:ef

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-30 17:25:14 -07:00
..
2012-07-26 11:25:33 -07:00
2011-09-27 18:08:04 +02:00
2010-02-24 13:51:32 +01:00
2012-04-03 13:09:18 +02:00
2011-09-27 18:08:04 +02:00
2012-06-18 13:42:03 +02:00
2011-03-31 11:26:23 -03:00
2012-07-05 07:13:51 +02:00
2012-07-18 18:35:57 -07:00
2011-03-31 11:26:23 -03:00
2012-07-09 16:42:11 -04:00
2011-09-27 18:08:04 +02:00
2012-07-19 00:03:46 +02:00
2011-11-02 16:07:02 -07:00
2012-07-24 13:37:37 -07:00
2011-03-31 11:26:23 -03:00
2012-07-24 23:20:40 -04:00
2011-09-27 18:08:04 +02:00
2010-04-08 11:34:34 +02:00
2008-12-03 16:09:53 -07:00
2012-03-16 20:35:01 +00:00
2011-03-31 11:26:23 -03:00
2012-06-03 12:05:50 +02:00
2011-03-31 11:26:23 -03:00
2011-09-27 18:08:04 +02:00
2012-07-24 18:11:22 -07:00
2009-07-01 22:36:22 +02:00
2011-03-07 13:20:05 -08:00
2009-04-27 12:00:27 -07:00
2009-04-27 12:00:27 -07:00
2011-09-27 18:08:04 +02:00
2012-02-28 16:05:06 +01:00
2011-09-27 18:08:04 +02:00
2011-03-31 11:26:23 -03:00
2010-07-19 10:56:54 +02:00
2010-03-16 11:47:56 +01:00
2012-01-02 13:04:55 +01:00