Stephen Boyd
2d168136d4
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 >
(cherry picked from commit 364da7c6dda2d9f41cb4ab715da204bc9923f3e2)
2013-02-08 15:14:22 -08:00
..
2012-04-18 12:14:28 +10:00
2012-03-28 18:30:03 +01:00
2011-09-21 13:39:59 -07:00
2011-03-22 17:44:17 -07:00
2012-03-07 15:04:04 -05:00
2012-02-29 17:15:08 -05:00
2012-03-07 15:04:04 -05:00
2011-05-04 14:41:28 -04:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2011-03-11 14:25:50 +00:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-01-10 16:30:49 -08:00
2012-01-26 21:28:45 +01:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-02-02 10:34:23 +11:00
2012-03-07 15:04:04 -05:00
2011-10-29 21:20:22 +02:00
2012-03-07 15:04:04 -05:00
2012-03-28 17:14:35 -07:00
2011-06-03 15:01:06 -04:00
2012-03-23 16:58:38 -07:00
2012-03-23 16:58:38 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-05 15:49:43 -08:00
2012-03-07 15:04:04 -05:00
2011-12-06 10:00:05 +01:00
2011-12-06 09:53:40 +01:00
2012-01-12 20:13:13 -08:00
2011-03-31 11:26:23 -03:00
2012-03-07 15:04:04 -05:00
2012-02-02 00:24:04 +11:00
2012-03-07 15:04:04 -05:00
2012-01-24 16:00:35 -08:00
2012-03-07 15:04:04 -05:00
2012-01-24 12:50:36 -08:00
2012-03-11 19:59:43 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-23 16:58:38 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-28 17:14:37 -07:00
2012-03-29 14:28:26 -07:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-04-10 14:48:51 -07:00
2012-03-07 15:04:04 -05:00
2011-10-31 17:30:56 -07:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-28 15:58:21 -07:00
2012-03-07 15:04:04 -05:00
2011-05-25 08:39:52 -07:00
2012-02-02 10:34:23 +11:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-01-31 23:19:47 +02:00
2011-10-31 17:30:56 -07:00
2012-02-29 17:15:08 -05:00
2012-03-23 16:58:36 -07:00
2011-09-13 11:11:50 +02:00
2012-03-28 17:14:37 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2011-12-08 19:52:43 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2011-05-25 08:39:03 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2011-04-14 16:06:54 -07:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2013-02-08 15:14:22 -08:00