From 259fa01d43b19b0f55ea1e98a77ca1c026669de4 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Thu, 7 May 2009 00:59:53 +0000 Subject: Always print the flashrom version as first output line Suggested by Peter Stuge. Corresponding to flashrom svn r471. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Carl-Daniel Hailfinger --- flashrom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'flashrom.c') 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': -- cgit v1.1