perf buildid-list: Fix error return for success
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Dec 2010 11:43:47 +0000 (09:43 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Dec 2010 11:43:47 +0000 (09:43 -0200)
commitbbde588bfacb990542eed043d89c8591d4ae9211
tree62ce715c9604177231f1d5e77e1a62d438061859
parent68a7a771ad0e2959983729bf88cbc74a7014438f
perf buildid-list: Fix error return for success

It was always returning -1 (255), confusing test scripts.

Reported-by: Han Pingtian <phan@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Han Pingtian <phan@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-buildid-list.c