Files
kernel-tenderloin-3.0/lib
Stephen Boyd 364da7c6dd vsprintf: Fix %ps on non symbols when using kallsyms
Using %ps in a printk format will sometimes fail silently and
print the empty string if the address passed in does not match a
symbol that kallsyms knows about. But using %pS will fall back to
printing the full address if kallsyms can't find the symbol. Make
%ps act the same as %pS by falling back to printing the address.

While we're here also make %ps print the module that a symbol
comes from so that it matches what %pS already does. Take this
simple function for example (in a module):

	static void test_printk(void)
	{
		int test;
		pr_info("with pS: %pS\n", &test);
		pr_info("with ps: %ps\n", &test);
	}

Before this patch:

 with pS: 0xdff7df44
 with ps:

After this patch:

 with pS: 0xdff7df44
 with ps: 0xdff7df44

Change-Id: Id03d74b079d40fe24b07a978909faedc741e281a
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-04-23 14:29:54 -07:00
..
2011-10-03 11:40:37 -07:00
2011-03-11 14:25:50 +00:00
2011-10-03 09:57:10 -07:00
2011-03-31 11:26:23 -03:00
2009-11-03 16:06:53 +01:00
2011-10-03 09:57:10 -07:00
2011-03-31 11:26:23 -03:00
2010-07-11 22:16:32 +02:00
2009-06-18 13:04:05 -07:00
2010-05-25 08:07:06 -07:00
2011-10-03 09:57:10 -07:00
2010-04-06 15:52:11 -07:00
2010-08-09 20:45:05 -07:00
2010-11-22 13:25:13 +10:00
2011-05-25 08:39:52 -07:00
2011-08-15 18:31:35 -07:00
2011-11-11 09:37:12 -08:00
2011-03-31 11:26:23 -03:00
2010-06-16 18:08:13 +02:00
2010-01-11 09:34:05 -08:00
2011-03-31 11:26:23 -03:00
2010-05-19 22:40:47 -04:00