[PATCH 2/2] Tools perf builtin-trace.c: %Ld -> %lld

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Gelmini
Date: Friday, March 26, 2010 - 6:47 am

Chackpatch.pl cleanup:
WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
+·⁖⁖dump_printf("(IP, %d): %d/%d: %#Lx period: %Ld\n", event->header.misc,

Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
---
 tools/perf/builtin-trace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index c743c86..49b772f 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -71,7 +71,7 @@ static int process_sample_event(event_t *event, struct perf_session *session)
 
 	event__parse_sample(event, session->sample_type, &data);
 
-	dump_printf("(IP, %d): %d/%d: %#Lx period: %Ld\n", event->header.misc,
+	dump_printf("(IP, %d): %d/%d: %#Lx period: %lld\n", event->header.misc,
 		    data.pid, data.tid, data.ip, data.period);
 
 	thread = perf_session__findnew(session, event->ip.pid);
-- 
1.7.0.3.296.g9776a

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Tools perf builtin-trace.c: #includes cleanup, Andrea Gelmini, (Fri Mar 26, 6:47 am)
[PATCH 2/2] Tools perf builtin-trace.c: %Ld -> %lld, Andrea Gelmini, (Fri Mar 26, 6:47 am)