summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfstool.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-03-28 16:46:07 -0700
committerRonald G. Minnich <rminnich@gmail.com>2013-04-02 20:27:10 +0200
commit60a4a73fcd7babd4819853542a5566293a097ed4 (patch)
tree5ffcf8ec27a60c4a5a49b78ee39344c55321b917 /util/cbfstool/cbfstool.c
parent0499da98859332b739f2ee5ea3329f6f57b4db96 (diff)
downloadcoreboot-60a4a73fcd7babd4819853542a5566293a097ed4.tar.xz
cbfstool: fix --machine
The help text says --machine, but the code actually checked for --arch. Fix it! Change-Id: Ib9bbf758b82ef070550348e897419513495f154b Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/3009 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r--util/cbfstool/cbfstool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 1a3d25e44a..bd34960555 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -274,7 +274,7 @@ static int cbfs_create(void)
// TODO Remove arch or pack into param.
if (arch == CBFS_ARCHITECTURE_UNKNOWN) {
- ERROR("You need to specify -m/--machine arch\n");
+ ERROR("You need to specify -m/--machine arch.\n");
return 1;
}
@@ -474,7 +474,7 @@ static struct option long_options[] = {
{"page-size", required_argument, 0, 'P' },
{"offset", required_argument, 0, 'o' },
{"file", required_argument, 0, 'f' },
- {"arch", required_argument, 0, 'm' },
+ {"machine", required_argument, 0, 'm' },
{"empty-fits", required_argument, 0, 'x' },
{"verbose", no_argument, 0, 'v' },
{"help", no_argument, 0, 'h' },