Rebrand to flashprog and update URLs

Mostly automated `sed` work. As of now, URLs to the old wiki are broken
either way, so changing them shouldn't hurt. Other URLs (e.g. to mailing
list archives) were hopefully filtered correctly.

Change-Id: I9d43bfd0e675eff2fcbad05f304b9ce9f5006b08
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashrom-stable/+/21
diff --git a/cli_output.c b/cli_output.c
index 629db67..2108e92 100644
--- a/cli_output.c
+++ b/cli_output.c
@@ -21,8 +21,8 @@
 #include <errno.h>
 #include "flash.h"
 
-enum flashrom_log_level verbose_screen = FLASHROM_MSG_INFO;
-enum flashrom_log_level verbose_logfile = FLASHROM_MSG_DEBUG2;
+enum flashprog_log_level verbose_screen = FLASHPROG_MSG_INFO;
+enum flashprog_log_level verbose_logfile = FLASHPROG_MSG_DEBUG2;
 
 static FILE *logfile = NULL;
 
@@ -56,16 +56,16 @@
 
 void start_logging(void)
 {
-	enum flashrom_log_level oldverbose_screen = verbose_screen;
+	enum flashprog_log_level oldverbose_screen = verbose_screen;
 
 	/* Shut up the console. */
-	verbose_screen = FLASHROM_MSG_ERROR;
+	verbose_screen = FLASHPROG_MSG_ERROR;
 	print_version();
 	verbose_screen = oldverbose_screen;
 }
 
 /* Please note that level is the verbosity, not the importance of the message. */
-int flashrom_print_cb(enum flashrom_log_level level, const char *fmt, va_list ap)
+int flashprog_print_cb(enum flashprog_log_level level, const char *fmt, va_list ap)
 {
 	int ret = 0;
 	FILE *output_type = stdout;
@@ -73,20 +73,20 @@
 	va_list logfile_args;
 	va_copy(logfile_args, ap);
 
-	if (level < FLASHROM_MSG_INFO)
+	if (level < FLASHPROG_MSG_INFO)
 		output_type = stderr;
 
 	if (level <= verbose_screen) {
 		ret = vfprintf(output_type, fmt, ap);
 		/* msg_*spew often happens inside chip accessors in possibly
 		 * time-critical operations. Don't slow them down by flushing. */
-		if (level != FLASHROM_MSG_SPEW)
+		if (level != FLASHPROG_MSG_SPEW)
 			fflush(output_type);
 	}
 
 	if ((level <= verbose_logfile) && logfile) {
 		ret = vfprintf(logfile, fmt, logfile_args);
-		if (level != FLASHROM_MSG_SPEW)
+		if (level != FLASHPROG_MSG_SPEW)
 			fflush(logfile);
 	}