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>
diff --git a/flashrom.c b/flashrom.c
index 689a775..2a5f1b3 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -369,6 +369,8 @@
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 @@
exit(0);
break;
case 'R':
- print_version();
+ /* print_version() is always called during startup. */
exit(0);
break;
case 'h':