summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-05-07 00:59:53 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-05-07 00:59:53 +0000
commit259fa01d43b19b0f55ea1e98a77ca1c026669de4 (patch)
tree72454198025e309e0f231b557360e6e9791ce320 /flashrom.c
parentcbdd4f0fc9016b6dc905202cf85c64cbe4a3ca49 (diff)
downloadast2050-flashrom-259fa01d43b19b0f55ea1e98a77ca1c026669de4.zip
ast2050-flashrom-259fa01d43b19b0f55ea1e98a77ca1c026669de4.tar.gz
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>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index 689a775..2a5f1b3 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -369,6 +369,8 @@ int main(int argc, char *argv[])
unsigned int exclude_start_position = 0, exclude_end_position = 0; // [x,y)
char *tempstr = NULL, *tempstr2 = NULL;
+ print_version();
+
if (argc > 1) {
/* Yes, print them. */
int i;
@@ -438,7 +440,7 @@ int main(int argc, char *argv[])
exit(0);
break;
case 'R':
- print_version();
+ /* print_version() is always called during startup. */
exit(0);
break;
case 'h':
OpenPOWER on IntegriCloud