mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 16:03:47 +02:00
Always print the flashrom version as first output line
Suggested by Peter Stuge. Corresponding to flashrom svn r471. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
parent
cbdd4f0fc9
commit
259fa01d43
@ -369,6 +369,8 @@ int main(int argc, char *argv[])
|
|||||||
unsigned int exclude_start_position = 0, exclude_end_position = 0; // [x,y)
|
unsigned int exclude_start_position = 0, exclude_end_position = 0; // [x,y)
|
||||||
char *tempstr = NULL, *tempstr2 = NULL;
|
char *tempstr = NULL, *tempstr2 = NULL;
|
||||||
|
|
||||||
|
print_version();
|
||||||
|
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
/* Yes, print them. */
|
/* Yes, print them. */
|
||||||
int i;
|
int i;
|
||||||
@ -438,7 +440,7 @@ int main(int argc, char *argv[])
|
|||||||
exit(0);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
print_version();
|
/* print_version() is always called during startup. */
|
||||||
exit(0);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user