[PATCH 1/1] perf diff: Fix usage array, it must end with a NULL entry

From: Arnaldo Carvalho de Melo
Date: Fri Dec 18 2009 - 13:34:17 EST


From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

Fixing this:

[acme@doppio linux-2.6-tip]$ perf diff --hell
Error: unknown option `hell'

usage: perf diff [<options>] [old_file] [new_file]
Segmentation fault
[acme@doppio linux-2.6-tip]$

Also go over the other such arrays to check if they all were OK, they
are, but there were some minor changes to do like making one static and
renaming another to match the command it refers to.

Cc: FrÃdÃric Weisbecker <fweisbec@xxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/builtin-diff.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c
index 4d33b55..5cc5dcd 100644
--- a/tools/perf/builtin-diff.c
+++ b/tools/perf/builtin-diff.c
@@ -191,6 +191,7 @@ out_delete:

static const char *const diff_usage[] = {
"perf diff [<options>] [old_file] [new_file]",
+ NULL,
};

static const struct option options[] = {
--
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/