From 7a1105772d393614b011b21e63192e364fb3e6cd Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Wed, 30 Aug 2017 22:24:03 +0100 Subject: [PATCH] rmbox: fix help output to show all options Signed-off-by: Liam Girdwood --- rmbox/rmbox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rmbox/rmbox.c b/rmbox/rmbox.c index 1ea7835..b51ddcc 100644 --- a/rmbox/rmbox.c +++ b/rmbox/rmbox.c @@ -92,7 +92,10 @@ static inline char get_char(uint32_t val, int idx) static void usage(char *name) { - fprintf(stdout, "%s:\t -i infile -o outfile\n", name); + fprintf(stdout, "Usage %s \n", name); + fprintf(stdout, "%s:\t -i infile -o outfile\tDump infile contents to outfile\n", name); + fprintf(stdout, "%s:\t -c\t\t\tSet timestamp clock in MHz\n", name); + fprintf(stdout, "%s:\t -s\t\t\tTake a snapshot of state\n", name); exit(0); } @@ -276,9 +279,6 @@ int main(int argc, char *argv[]) } } - if (argc > 1 && (in_file == NULL || out_file == NULL)) - usage(argv[0]); - /* open infile for reading */ in_fd = fopen(in_file, "r"); if (in_fd == NULL) {