perf record: Fix typo in pid_synthesize_comm_event
authorArnaldo Carvalho de Melo <[email protected]>
Fri, 14 Aug 2009 18:26:32 +0000 (15:26 -0300)
committerIngo Molnar <[email protected]>
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 <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <20090814182632[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/builtin-record.c