cbfstool: Clean up messages
The output of cbfstool is a little inconsistent in some places. This patch fixes it. Change-Id: Ieb643cb769ebfa2a307bd286ae2c46f75ac5e1c1 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1955 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Ronald G. Minnich
parent
7f934f5ee0
commit
0a9775941d
@@ -247,7 +247,7 @@ static int cbfs_add_flat_binary(void)
|
||||
}
|
||||
|
||||
if (rom_entrypoint == 0) {
|
||||
fprintf(stderr, "You need to specify a valid "
|
||||
fprintf(stderr, "E: You need to specify a valid "
|
||||
"-e/--entry-point.\n");
|
||||
return 1;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ static int cbfs_add_flat_binary(void)
|
||||
|
||||
rom = loadrom(cbfs_name);
|
||||
if (rom == NULL) {
|
||||
fprintf(stderr, "Could not load ROM image '%s'.\n",
|
||||
fprintf(stderr, "E: Could not load ROM image '%s'.\n",
|
||||
cbfs_name);
|
||||
return 1;
|
||||
}
|
||||
@@ -364,12 +364,12 @@ static int cbfs_remove(void)
|
||||
static int cbfs_create(void)
|
||||
{
|
||||
if (rom_size == 0) {
|
||||
printf("You need to specify a valid -s/--size.\n");
|
||||
fprintf(stderr, "E: You need to specify a valid -s/--size.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!rom_bootblock) {
|
||||
printf("You need to specify -b/--bootblock.\n");
|
||||
fprintf(stderr, "E: You need to specify -b/--bootblock.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user