diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-05-08 20:07:00 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-05-08 20:07:00 +0000 |
commit | b534e4256570ab100456837898c81aa581deeb09 (patch) | |
tree | 165e1cf12c515ffb8924d790582529a98100716c /util/cbfstool/print.c | |
parent | 475aeda9d6d62d0249276bff657adc67d206ff31 (diff) | |
download | coreboot-b534e4256570ab100456837898c81aa581deeb09.tar.xz |
Trivial clean up of print usage and parameter checking.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4263 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/cbfstool/print.c')
-rw-r--r-- | util/cbfstool/print.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/util/cbfstool/print.c b/util/cbfstool/print.c index b23f949e06..234fefb423 100644 --- a/util/cbfstool/print.c +++ b/util/cbfstool/print.c @@ -27,8 +27,11 @@ void print_usage(void) int print_handler(struct rom *rom, int argc, char **argv) { - if (argc > 0 || argv[1] != NULL) - printf("print\t\t\t\tShow the contents of the ROM\n"); + if ( argc > 0 ) { + ERROR("print %s? print takes no arguments.\n", argv[0]); + print_usage(); + return -1; + } printf("%s: %d kB, bootblocksize %d, romsize %d, offset 0x%x\n", rom->name, rom->size / 1024, ntohl(rom->header->bootblocksize), ntohl(rom->header->romsize), ntohl(rom->header->offset)); |