Stephen Boyd
4796dd200d
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
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org >
Cc: Ingo Molnar <mingo@elte.hu >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-05-29 16:22:32 -07:00
..
2012-04-18 12:14:28 +10:00
2012-05-22 13:54:24 +10: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-05-29 16:22:32 -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-04-18 13:38:48 +02:00
2012-03-07 15:04:04 -05:00
2011-12-06 10:00:05 +01:00
2011-01-13 08:03:25 -08: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
2011-01-13 08:03:25 -08: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-05-07 16:47:32 -07: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-05-02 00:04:06 -07:00
2012-03-07 15:04:04 -05:00
2012-05-26 16:57:16 -07:00
2012-05-23 10:09:50 -07:00
2012-04-19 19:17:30 -07:00
2012-03-24 10:24:31 -07:00
2012-05-07 16:51:19 -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-05-29 16:22:32 -07:00
2010-10-26 16:52:19 -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-05-26 16:57:16 -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-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-05-17 15:18:37 +02: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-04-20 23:27:08 +02:00
2012-05-29 16:22:32 -07:00
2012-03-24 10:24:31 -07:00
2012-05-26 11:33:40 -07:00
2012-05-27 20:59:46 -07:00
2012-05-29 16:22:21 -07:00
2012-03-07 15:04:04 -05:00
2012-05-29 16:22:32 -07:00
2011-01-24 23:33:30 -08:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-05-29 16:22:32 -07:00