summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-15 15:04:37 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-15 15:04:37 +0000
commit8841d3e703e3d3f7c7920b7f9439fc9333c15638 (patch)
tree6882ad326234c32f0af130afede47c17a910a181 /flashrom.c
parent316a29f33f7b4f549097c102cf2e56a30d7e3cac (diff)
downloadast2050-flashrom-8841d3e703e3d3f7c7920b7f9439fc9333c15638.zip
ast2050-flashrom-8841d3e703e3d3f7c7920b7f9439fc9333c15638.tar.gz
Fix assorted documentation, frontend and printing bugs
Change the command line interface to make file names positional. Add more sanity checks to the command line parser. Corresponding to flashrom svn r998. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c35
1 files changed, 25 insertions, 10 deletions
diff --git a/flashrom.c b/flashrom.c
index c302271..1b01381 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1130,8 +1130,9 @@ void emergency_help_message(void)
{
msg_gerr("Your flash chip is in an unknown state.\n"
"Get help on IRC at irc.freenode.net (channel #flashrom) or\n"
- "mail flashrom@flashrom.org!\n--------------------"
- "-----------------------------------------------------------\n"
+ "mail flashrom@flashrom.org!\n"
+ "-------------------------------------------------------------"
+ "------------------\n"
"DO NOT REBOOT OR POWEROFF!\n");
}
@@ -1183,10 +1184,17 @@ void print_sysinfo(void)
void print_version(void)
{
- msg_ginfo("flashrom v%s\n", flashrom_version);
+ msg_ginfo("flashrom v%s", flashrom_version);
print_sysinfo();
}
+void print_banner(void)
+{
+ msg_ginfo("flashrom is free software, get the source code at "
+ "http://www.flashrom.org\n");
+ msg_ginfo("\n");
+}
+
int selfcheck(void)
{
int ret = 0;
@@ -1247,13 +1255,20 @@ void check_chip_supported(struct flashchip *flash)
msg_cinfo("\n");
}
/* FIXME: This message is designed towards CLI users. */
- msg_cinfo("Please email a report to flashrom@flashrom.org if any "
- "of the above operations\nwork correctly for you with "
- "this flash part. Please include the flashrom\noutput "
- "with the additional -V option for all operations you "
- "tested (-V, -rV,\n-wV, -EV), and mention which "
- "mainboard or programmer you tested.\nThanks for your "
- "help!\n===\n");
+ msg_cinfo("The test status of this chip may have been updated "
+ "in the latest development\n"
+ "version of flashrom. If you are running the latest "
+ "development version,\n"
+ "please email a report to flashrom@flashrom.org if "
+ "any of the above operations\n"
+ "work correctly for you with this flash part. Please "
+ "include the flashrom\n"
+ "output with the additional -V option for all "
+ "operations you tested (-V, -Vr,\n"
+ "-Vw, -VE), and mention which mainboard or "
+ "programmer you tested.\n"
+ "Thanks for your help!\n"
+ "===\n");
}
}
OpenPOWER on IntegriCloud