perf record: Fix typo in pid_synthesize_comm_event
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Aug 2009 18:26:32 +0000 (15:26 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 15 Aug 2009 09:59:06 +0000 (11:59 +0200)
commit39e6dd73502f64e2ae3236b304e160ae30de9384
tree589138e23fc1dfb5c1a17d170bc3a4d02493d0fe
parent64f1607ffbbc772685733ea63e6f7f4183df1b16
perf record: Fix typo in pid_synthesize_comm_event

We were using 'fd' locally, but there was a global 'fd' too, so
when converting from open to fopen the test made against fd
should be made against 'fp', but since we have that global
it didnt get discovered ...

Reported-by: Ulrich Drepper <drepper@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20090814182632.GF3490@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c