aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-07-21 18:22:41 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-07-21 18:22:41 -0400
commit52be6f4f02e94512b830bfae9ae411c50d5696a7 (patch)
tree1e61b4e44011883090e1cb4ddf66c5c5f9defab0
parent94390519dd459ce62e576aef9fcf14d2909973ef (diff)
only print function name on "%pf" and not address offset
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--parse-events.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/parse-events.c b/parse-events.c
index 390a784..2a7fa44 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -2210,7 +2210,7 @@ static void pretty_print(void *data, int size, struct event *event)
2210 if (*(ptr+1) == 'F' || 2210 if (*(ptr+1) == 'F' ||
2211 *(ptr+1) == 'f') { 2211 *(ptr+1) == 'f') {
2212 ptr++; 2212 ptr++;
2213 show_func = 1; 2213 show_func = *(ptr+1);
2214 } 2214 }
2215 2215
2216 /* fall through */ 2216 /* fall through */
@@ -2238,9 +2238,10 @@ static void pretty_print(void *data, int size, struct event *event)
2238 if (show_func) { 2238 if (show_func) {
2239 func = find_func(val); 2239 func = find_func(val);
2240 if (func) { 2240 if (func) {
2241 printf("%s+0x%llx", 2241 printf("%s", func->func);
2242 func->func, 2242 if (show_func == 'F')
2243 val - func->addr); 2243 printf("+0x%llx",
2244 val - func->addr);
2244 break; 2245 break;
2245 } 2246 }
2246 } 2247 }