[Sound-open-firmware] [PATCH] rmbox: fix help output to show all options
Liam Girdwood
liam.r.girdwood at linux.intel.com
Wed Aug 30 23:56:17 CEST 2017
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
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 <option(s)> <file(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) {
--
2.11.0
More information about the Sound-open-firmware
mailing list